forked from leftypol/leftypol
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.
This commit is contained in:
parent
60aab92f47
commit
2a760de289
41 changed files with 10018 additions and 29 deletions
8
mod.php
8
mod.php
|
@ -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/>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue