diff options
| author | czaks <marcin@6irc.net> | 2015-04-02 20:43:06 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-02 20:43:06 +0200 |
| commit | fd0f3195b2ae36cbe2b4d599734cf00b80e3a1f0 (patch) | |
| tree | 057edd8a6a870388bb897ca4dc70fc9a00619609 | |
| parent | 018ec3b605091af93b58a48d563410976212d470 (diff) | |
smart_build.php: add a protection for +50; maybe we don`t need to rebuild after all?
| -rw-r--r-- | smart_build.php | 8 |
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); |
