summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorDan Saunders <dsaunders@dansaunders.me>2013-08-26 00:36:41 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-27 06:56:53 +1000
commit00a1841cbc6fb76cd96c51142a3a1b86a073d58a (patch)
treebcd90db8f3535c927823461968f3779b30719aee /inc
parent08bb2894bc358600eeaa03014080c3c2dd910cef (diff)
Regenerate themes after editing a post
Diffstat (limited to 'inc')
-rw-r--r--inc/mod/pages.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 5ee8221b..3305e0c2 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1306,6 +1306,8 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
}
buildIndex();
+
+ rebuildThemes('post', $board['uri']);
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['dir']['res'] . sprintf($config['file_page'], $post['thread'] ? $post['thread'] : $postID) . '#' . $postID, true, $config['redirect_http']);
} else {