forked from leftypol/leftypol
updated themes to use new file_write() function
This commit is contained in:
parent
d4aff84741
commit
70d84874e0
2 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if($action == 'all' || $action == 'news')
|
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
|
// Build news page
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if($action == 'all')
|
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')
|
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')
|
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
|
// Build homepage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue