summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-02-19 19:01:03 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-02-19 19:01:03 +1100
commit3e9e51b1e7ac8375976c54e305de0c04a48c575e (patch)
treea150fe382459f20d596d27389e842c36f2b10eb2
parent2a243b2acbafee340a9f1b85d4a1353b613deb58 (diff)
board management bug with certain themes enabled
-rw-r--r--mod.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index ff9fee94..f8d624e8 100644
--- a/mod.php
+++ b/mod.php
@@ -1590,8 +1590,12 @@
$query->bindValue(':board', $board['uri']);
$query->execute() or error(db_error($query));
+ $_board = $board;
+
rebuildThemes('boards');
+ $board = $_board;
+
header('Location: ?/', true, $config['redirect_http']);
} else {
if(isset($_POST['title']) && isset($_POST['subtitle'])) {
@@ -1611,8 +1615,12 @@
cache::delete('all_boards');
}
+ $_board = $board;
+
rebuildThemes('boards');
+ $board = $_board;
+
openBoard($board['uri']);
}