summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-18 12:06:26 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-18 12:06:26 -0400
commite4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (patch)
tree698630de8be70b1bf50fadef701c13109c1d5083 /post.php
parentde4b5b396246ee5c3cb8687cfef3647c844a3b54 (diff)
Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable.
Diffstat (limited to 'post.php')
-rw-r--r--post.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/post.php b/post.php
index 3d718786..97fb263d 100644
--- a/post.php
+++ b/post.php
@@ -677,7 +677,11 @@ if (isset($_POST['delete'])) {
_syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] .
sprintf($config['file_page'], $post['op'] ? $id : $post['thread']) . (!$post['op'] ? '#' . $id : ''));
- rebuildThemes('post');
+ if ($post['op'])
+ rebuildThemes('post-thread', $board['uri']);
+ else
+ rebuildThemes('post', $board['uri']);
+
header('Location: ' . $redirect, true, $config['redirect_http']);
} else {
if (!file_exists($config['has_installed'])) {