diff options
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1920,6 +1920,8 @@ $body .= 'Generating Javascript file…<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…<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/>"; |
