summaryrefslogtreecommitdiff
path: root/templates/themes/recent/theme.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-05-08 10:54:30 +0200
committerczaks <marcin@6irc.net>2016-05-08 10:54:30 +0200
commitb6f0317bde1b6d9a9ac5d81a660865a7aa9ad13d (patch)
tree6c6523b9081d2d561080f1b2d8378d93e2a237e1 /templates/themes/recent/theme.php
parent644f227ab33f247dc82e0208fe2125d5d002f4f4 (diff)
advanced build (1/2): a small refactor of index generating procedure; generation strategies
Diffstat (limited to 'templates/themes/recent/theme.php')
-rw-r--r--templates/themes/recent/theme.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php
index f44e2529..95921c35 100644
--- a/templates/themes/recent/theme.php
+++ b/templates/themes/recent/theme.php
@@ -25,10 +25,11 @@
$this->excluded = explode(' ', $settings['exclude']);
if ($action == 'all' || $action == 'post' || $action == 'post-thread' || $action == 'post-delete') {
- if ($config['smart_build']) {
+ $action = generation_strategy('sb_recent', array());
+ if ($action == 'delete') {
file_unlink($config['dir']['home'] . $settings['html']);
}
- else {
+ elseif ($action == 'rebuild') {
file_write($config['dir']['home'] . $settings['html'], $this->homepage($settings));
}
}