summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMarcin Ɓabanowski <marcin@6irc.net>2016-09-23 09:24:05 +0200
committerGitHub <noreply@github.com>2016-09-23 09:24:05 +0200
commita4b619ae5eaab5755dc215a496854dee8f7ce395 (patch)
treeae42ba85c8385b88a0ec23f9cbf99ce4f53dde99 /inc
parent3f38a6db9760c618c61cab4d892ea5632771231e (diff)
parent8951cb74c8fbface07e38308994bc2fe480e3c82 (diff)
Merge pull request #198 from seisatsu/patch-1
Rebuild index when mod deletes a thread.
Diffstat (limited to 'inc')
-rw-r--r--inc/mod/pages.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 303fa3dd..c3e98af5 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1721,6 +1721,8 @@ function mod_deletebyip($boardName, $post, $global = false) {
deletePost($post['id'], false, false);
rebuildThemes('post-delete', $board['uri']);
+
+ buildIndex();
if ($post['thread'])
$threads_to_rebuild[$post['board']][$post['thread']] = true;