diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-18 12:06:26 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-18 12:06:26 -0400 |
| commit | e4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (patch) | |
| tree | 698630de8be70b1bf50fadef701c13109c1d5083 /post.php | |
| parent | de4b5b396246ee5c3cb8687cfef3647c844a3b54 (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.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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'])) { |
