summaryrefslogtreecommitdiff
path: root/smart_build.php
diff options
context:
space:
mode:
Diffstat (limited to 'smart_build.php')
-rw-r--r--smart_build.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/smart_build.php b/smart_build.php
index d8352621..dd9450ae 100644
--- a/smart_build.php
+++ b/smart_build.php
@@ -59,6 +59,14 @@ function sb_thread($b, $thread, $slugcheck = false) { global $config; $thread =
die();
}
}
+
+ if ($slugcheck == 50) { // Should we really generate +50 page? Maybe there are not enough posts anyway
+ global $request;
+ $r = str_replace("+50", "", $request);
+ $r = substr($r, 1); // Cut the slash
+
+ if (file_exists($r)) return false;
+ }
if (!openBoard($b)) return false;
buildThread($thread);