diff options
| author | czaks <marcin@6irc.net> | 2013-07-18 15:19:03 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-18 15:19:03 -0400 |
| commit | fa66b96240e9fdf7b179e604833d1c59702f9c39 (patch) | |
| tree | c7640caebe4294b1bd0eff54ce418fe0a251104c /post.php | |
| parent | 8c72c8a43232f137256fa170c889ba330ebba7af (diff) | |
| parent | e4bd9a6886af2a812ccc909d8ad957df1bdc5d2b (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
post.php
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -685,8 +685,13 @@ 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['mod']) header('X-Associated-Content: "' . $redirect . '"'); + + 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'])) { |
