diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-22 01:24:45 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-22 01:24:45 +1000 |
| commit | 70d84874e0ccf6e5726f45153011a2bc0389084e (patch) | |
| tree | 406815caec331137568f7ca2b5c414d5ae383fb7 | |
| parent | d4aff8474120cacab05f92800b8e6a6273cde385 (diff) | |
updated themes to use new file_write() function
| -rw-r--r-- | templates/homepage/basic/theme.php | 2 | ||||
| -rw-r--r-- | templates/homepage/frameset/theme.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/homepage/basic/theme.php b/templates/homepage/basic/theme.php index 5782d63d..5b086852 100644 --- a/templates/homepage/basic/theme.php +++ b/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 diff --git a/templates/homepage/frameset/theme.php b/templates/homepage/frameset/theme.php index 90af409c..6aa126c8 100644 --- a/templates/homepage/frameset/theme.php +++ b/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 |
