From 391f63e31f4b254bdc1d5c1a2e4c81d80acb767d Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Mon, 26 Aug 2019 05:38:22 +1000 Subject: Rebuild themes after stickying or locking post, so that catalog gets rebuilt --- inc/mod/pages.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc') 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']); -- cgit v1.3