summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-04-01 18:46:48 +0200
committerczaks <marcin@6irc.net>2015-04-01 18:46:48 +0200
commita19853dbe82f10fa9a3c7c69f3da6662fd0fc589 (patch)
tree7dc54930070a1c1c51b4b8f6f99e11ab312ae2c6
parentb246daa191ed6495ce7a73a369c645599eea610e (diff)
smart_build.php: misc fixes
-rw-r--r--smart_build.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/smart_build.php b/smart_build.php
index 6621238e..d937241b 100644
--- a/smart_build.php
+++ b/smart_build.php
@@ -7,8 +7,12 @@ if (!$config['smart_build']) {
$config['smart_build'] = false; // Let's disable it, so we can build the page for real
+function after_open_board() { global $config;
+ $config['smart_build'] = false;
+};
+
function sb_board($b, $page = 1) { global $config, $build_pages; $page = (int)$page;
- if ($page < 1 && $page != -1) return false;
+ if ($page < 1) return false;
if (!openBoard($b)) return false;
if ($page > $config['max_pages']) return false;
$config['try_smarter'] = true;
@@ -46,7 +50,7 @@ function sb_catalog($b) {
}
function sb_recent() {
- rebuildTheme("recent", "post-thread");
+ rebuildTheme("recent", "post-thread");
return true;
}