1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

introduce smart_build_helper

This commit is contained in:
czaks 2016-05-06 18:42:33 +02:00
parent ce9f9eec25
commit deef54fe13

View File

@ -1,8 +1,8 @@
<?php <?php
require_once("inc/functions.php"); require_once("inc/functions.php");
if (!$config['smart_build']) { if (!$config['smart_build'] && !$config["smart_build_helper"]) {
die('You need to enable $config["smart_build"]'); die('You need to enable $config["smart_build"] or $config["smart_build_helper"]');
} }
$config['smart_build'] = false; // Let's disable it, so we can build the page for real $config['smart_build'] = false; // Let's disable it, so we can build the page for real
@ -44,7 +44,7 @@ function sb_thread($b, $thread, $slugcheck = false) { global $config; $thread =
$query->bindValue(':id', $thread); $query->bindValue(':id', $thread);
if (!$query->execute() || !$query->fetch(PDO::FETCH_ASSOC) ) { if (!$query->execute() || !$query->fetch(PDO::FETCH_ASSOC) ) {
Cache::set("thread_exists_".$b."_".$thread, "no"); Cache::set("thread_exists_".$b."_".$thread, "no", 3600);
return false; return false;
} }