summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index f13af0ef..45e81e9e 100644
--- a/mod.php
+++ b/mod.php
@@ -1920,6 +1920,8 @@
$body .= 'Generating Javascript file&hellip;<br/>';
buildJavascript();
+ $main_js = $config['file_script'];
+
$boards = listBoards();
foreach($boards as &$board) {
@@ -1929,6 +1931,12 @@
$body .= 'Creating index pages<br/>';
buildIndex();
+ if($config['file_script'] != $main_js) {
+ // different javascript file
+ $body .= 'Generating Javascript file&hellip;<br/>';
+ buildJavascript();
+ }
+
$query = query(sprintf("SELECT `id` FROM `posts_%s` WHERE `thread` IS NULL", $board['uri'])) or error(db_error());
while($post = $query->fetch()) {
$body .= "Rebuilding #{$post['id']}<br/>";