8chan/smart-build: 404.php should global $config? php is weird

This commit is contained in:
czaks 2015-04-07 01:48:03 +02:00
parent 51b93e643d
commit be80df21f0

View File

@ -3,6 +3,8 @@
require_once "inc/functions.php";
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
global $config;
$dir = "static/404/";
if (!is_dir($dir))