diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 21:44:41 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 21:48:31 +1100 |
| commit | 2a760de2896a02af98caa013537166b5d3fcc717 (patch) | |
| tree | 1fccf2193f881239a0424fdd5fdb67f9e320a033 /mod.php | |
| parent | 60aab92f47e651b214f0b993aab03d08e033134e (diff) | |
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.
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/>"; |
