From 2a760de2896a02af98caa013537166b5d3fcc717 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 14 Mar 2012 21:44:41 +1100 Subject: Multiple changes. Added $config['minify_js'] to compress Javascript with minify Added $config['additional_javascript_compile'] to put all Javascript files/addons into one file. Moved delete/report post controls to a shared template. Ability to have different Javascript files between boards. --- mod.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mod.php') 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…
'; buildJavascript(); + $main_js = $config['file_script']; + $boards = listBoards(); foreach($boards as &$board) { @@ -1929,6 +1931,12 @@ $body .= 'Creating index pages
'; buildIndex(); + if($config['file_script'] != $main_js) { + // different javascript file + $body .= 'Generating Javascript file…
'; + 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']}
"; -- cgit v1.3