summaryrefslogtreecommitdiff
path: root/templates/themes/sitemap/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/themes/sitemap/theme.php')
-rw-r--r--templates/themes/sitemap/theme.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/themes/sitemap/theme.php b/templates/themes/sitemap/theme.php
index 52779d53..6bc035bb 100644
--- a/templates/themes/sitemap/theme.php
+++ b/templates/themes/sitemap/theme.php
@@ -23,10 +23,12 @@
}
}
- if ($config['smart_build']) {
+ $action = generation_strategy('sb_sitemap', array());
+
+ if ($action == 'delete') {
file_unlink($settings['path']);
}
- else {
+ elseif ($action == 'rebuild') {
$boards = explode(' ', $settings['boards']);
$threads = array();