summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2019-08-26 05:38:22 +1000
committerBenjamin Southall <applemansigloo@gmail.com>2019-08-26 05:38:22 +1000
commit391f63e31f4b254bdc1d5c1a2e4c81d80acb767d (patch)
tree85b65cfea4a97238f7a94b56d832a31f82cb7121 /inc/mod
parent0439a9c6c542bd75a857be69c9ba82f0a005a35d (diff)
Rebuild themes after stickying or locking post, so that catalog gets rebuilt
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/pages.php4
1 files changed, 4 insertions, 0 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']);