summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Saunders <dsaunders@dansaunders.me>2013-08-25 23:23:02 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-26 13:35:51 +1000
commit09388f6588843d8042fc2542d049deb47c57ce07 (patch)
tree7177d5058c8d198f30c42226681319cc37da8315
parentcdeccbb9ba041b47aec0b6e6cc7acea268cf32ad (diff)
Added a post-delete action for themes
This would be really useful for themes that focus on posts
-rw-r--r--post.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/post.php b/post.php
index 7ab1eb59..2450bf06 100644
--- a/post.php
+++ b/post.php
@@ -75,6 +75,9 @@ if (isset($_POST['delete'])) {
}
buildIndex();
+
+
+ rebuildThemes('post-delete', $board['uri']);
$is_mod = isset($_POST['mod']) && $_POST['mod'];
$root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root'];