forked from leftypol/leftypol
themes can use smart_build now
This commit is contained in:
parent
e1a8c4aa7d
commit
61d2729a40
3 changed files with 36 additions and 7 deletions
|
@ -24,8 +24,14 @@
|
|||
|
||||
$this->excluded = explode(' ', $settings['exclude']);
|
||||
|
||||
if ($action == 'all' || $action == 'post' || $action == 'post-thread' || $action == 'post-delete')
|
||||
file_write($config['dir']['home'] . $settings['html'], $this->homepage($settings));
|
||||
if ($action == 'all' || $action == 'post' || $action == 'post-thread' || $action == 'post-delete') {
|
||||
if ($config['smart_build']) {
|
||||
file_unlink($config['dir']['home'] . $settings['html']);
|
||||
}
|
||||
else {
|
||||
file_write($config['dir']['home'] . $settings['html'], $this->homepage($settings));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Build news page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue