Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable.

This commit is contained in:
Michael Foster 2013-07-18 12:06:26 -04:00
parent de4b5b3962
commit e4bd9a6886
9 changed files with 44 additions and 39 deletions

View file

@ -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'])) {