Browse Source

updated themes to use new file_write() function

pull/40/head
Savetheinternet 13 years ago
parent
commit
70d84874e0
  1. 2
      templates/homepage/basic/theme.php
  2. 6
      templates/homepage/frameset/theme.php

2
templates/homepage/basic/theme.php

@ -16,7 +16,7 @@
global $config;
if($action == 'all' || $action == 'news')
file_put_contents($config['dir']['home'] . $config['file_index'], Basic::homepage($settings));
file_write($config['dir']['home'] . $config['file_index'], Basic::homepage($settings));
}
// Build news page

6
templates/homepage/frameset/theme.php

@ -16,13 +16,13 @@
global $config;
if($action == 'all')
file_put_contents($config['dir']['home'] . $config['file_index'], Frameset::homepage($settings));
file_write($config['dir']['home'] . $config['file_index'], Frameset::homepage($settings));
if($action == 'all' || $action == 'boards')
file_put_contents($config['dir']['home'] . 'sidebar.html', Frameset::sidebar($settings));
file_write($config['dir']['home'] . 'sidebar.html', Frameset::sidebar($settings));
if($action == 'all' || $action == 'news')
file_put_contents($config['dir']['home'] . 'news.html', Frameset::news($settings));
file_write($config['dir']['home'] . 'news.html', Frameset::news($settings));
}
// Build homepage

Loading…
Cancel
Save