per-board javascript files
This commit is contained in:
parent
d3b1f4cfa3
commit
9df2ce179e
@ -60,6 +60,8 @@
|
||||
echo "Generating Javascript file...\n";
|
||||
buildJavascript();
|
||||
|
||||
$main_js = $config['file_script'];
|
||||
|
||||
$boards = listBoards();
|
||||
|
||||
foreach($boards as &$board) {
|
||||
@ -69,6 +71,12 @@
|
||||
echo "Creating index pages...\n";
|
||||
buildIndex();
|
||||
|
||||
if($config['file_script'] != $main_js) {
|
||||
// different javascript file
|
||||
echo "Generating Javascript file...\n";
|
||||
buildJavascript();
|
||||
}
|
||||
|
||||
$query = query(sprintf("SELECT `id` FROM `posts_%s` WHERE `thread` IS NULL", $board['uri'])) or error(db_error());
|
||||
while($post = $query->fetch()) {
|
||||
echo "Rebuilding #{$post['id']}...\n";
|
||||
|
Loading…
Reference in New Issue
Block a user