summaryrefslogtreecommitdiff
path: root/templates/themes/recent/theme.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-04-02 20:54:28 +0200
committerczaks <marcin@6irc.net>2015-04-02 20:54:28 +0200
commit61d2729a40e8249fef8b3c0c584a9b5f7ae0777c (patch)
treeef95fbac196a17ede3dc49736116f973eb1120f1 /templates/themes/recent/theme.php
parente1a8c4aa7dc62186e7c74436db9fe89071647b3d (diff)
themes can use smart_build now
Diffstat (limited to 'templates/themes/recent/theme.php')
-rw-r--r--templates/themes/recent/theme.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php
index ce64c80e..f44e2529 100644
--- a/templates/themes/recent/theme.php
+++ b/templates/themes/recent/theme.php
@@ -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