mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-22 05:29:34 +01:00
smart_build.php: add a protection for +50; maybe we don`t need to rebuild after all?
This commit is contained in:
parent
076bd22586
commit
0c3c982d7a
@ -59,6 +59,14 @@ function sb_thread($b, $thread, $slugcheck = false) { global $config; $thread =
|
|||||||
die();
|
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;
|
if (!openBoard($b)) return false;
|
||||||
buildThread($thread);
|
buildThread($thread);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user