summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-20 01:50:35 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-20 01:50:35 +1000
commit2234c1ecea8223c4dc478c6426eee3f7db4ce538 (patch)
tree3cd0fc0c88b20fca33bc2a533dfe566f92100e72 /post.php
parent2babc137e982e0191144ca51ef89759923c33002 (diff)
bug fix for recent theme
Diffstat (limited to 'post.php')
-rw-r--r--post.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/post.php b/post.php
index 15a87dd3..d0474838 100644
--- a/post.php
+++ b/post.php
@@ -486,7 +486,6 @@
clean();
buildIndex();
- sql_close();
// Tell Javascript that we posted successfully
if(isset($_COOKIE[$config['cookies']['js']]))
@@ -501,11 +500,17 @@
$root = $post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'];
if($config['always_noko'] || $noko) {
- header('Location: ' . $root . $board['dir'] . $config['dir']['res'] . ($OP?$id:$post['thread']) . '.html' . (!$OP?'#'.$id:''), true, $config['redirect_http']);
+ $redirect = $root . $board['dir'] . $config['dir']['res'] . ($OP?$id:$post['thread']) . '.html' . (!$OP?'#'.$id:'');
} else {
- header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']);
+ $redirect = $root . $board['dir'] . $config['file_index'];
+
}
+ rebuildTheme('post');
+ header('Location: ' . $redirect, true, $config['redirect_http']);
+
+ sql_close();
+
exit;
} else {
if(!file_exists($config['has_installed'])) {