summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorDan Saunders <dsaunders@dansaunders.me>2013-08-25 23:50:29 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-27 06:56:46 +1000
commit08bb2894bc358600eeaa03014080c3c2dd910cef (patch)
treed8378b450d4a58331261a5143d84f93a7aac1510 /inc/mod
parentbb06593ef5f21b4bc4432530e5ca634f09764773 (diff)
Rebuild themes when a post or file is deleted...
Rebuild themes when a post or file is deleted in the moderation panel.
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/pages.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 706513a3..5ee8221b 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1241,6 +1241,8 @@ function mod_ban_post($board, $delete, $post, $token = false) {
modLog("Deleted post #{$post}");
// Rebuild board
buildIndex();
+ // Rebuild themes
+ rebuildThemes('post-delete', $board['uri']);
}
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
@@ -1333,7 +1335,8 @@ function mod_delete($board, $post) {
modLog("Deleted post #{$post}");
// Rebuild board
buildIndex();
-
+ // Rebuild themes
+ rebuildThemes('post-delete', $board['uri']);
// Redirect
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
}
@@ -1354,6 +1357,8 @@ function mod_deletefile($board, $post) {
// Rebuild board
buildIndex();
+ // Rebuild themes
+ rebuildThemes('post-delete', $board['uri']);
// Redirect
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
@@ -1392,6 +1397,9 @@ function mod_spoiler_image($board, $post) {
// Rebuild board
buildIndex();
+
+ // Rebuild themes
+ rebuildThemes('post-delete', $board['uri']);
// Redirect
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
@@ -1442,6 +1450,8 @@ function mod_deletebyip($boardName, $post, $global = false) {
deletePost($post['id'], false, false);
+ rebuildThemes('post-delete', $board['uri']);
+
if ($post['thread'])
$threads_to_rebuild[$post['board']][$post['thread']] = true;
else