From e4bd9a6886af2a812ccc909d8ad957df1bdc5d2b Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Thu, 18 Jul 2013 12:06:26 -0400 Subject: Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable. --- post.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'post.php') 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'])) { -- cgit v1.3