summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/mod/pages.php4
-rw-r--r--templates/themes/catalog/theme.php3
2 files changed, 6 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 2578a05a..93e2e033 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1099,6 +1099,8 @@ function mod_lock($board, $unlock, $post) {
modLog(($unlock ? 'Unlocked' : 'Locked') . " thread #{$post}");
buildThread($post);
buildIndex();
+ // trigger themes
+ rebuildThemes('lock', $board);
}
if ($config['mod']['dismiss_reports_on_lock']) {
@@ -1133,6 +1135,8 @@ function mod_sticky($board, $unsticky, $post) {
modLog(($unsticky ? 'Unstickied' : 'Stickied') . " thread #{$post}");
buildThread($post);
buildIndex();
+ // trigger themes
+ rebuildThemes('sticky', $board);
}
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php
index f141847f..5ff6c934 100644
--- a/templates/themes/catalog/theme.php
+++ b/templates/themes/catalog/theme.php
@@ -26,7 +26,8 @@
$b->build($settings, $board);
}
}
- } elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && in_array($board, $boards)) {
+ } elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete')
+ || $action == 'sticky' || $action == 'lock' && in_array($board, $boards)) {
$b = new Catalog($settings);
$action = generation_strategy("sb_catalog", array($board));