fix 500 error on missing config.php

master
Andrew Dolgov 13 years ago
parent fe6d5185d4
commit 9da0e4a2ff

@ -1,15 +1,15 @@
<?php
require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 23);
define('SCHEMA_VERSION', 86);
if (!file_exists("config.php")) {
print "<b>Fatal Error</b>: You forgot to copy
<b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
exit;
}
define('EXPECTED_CONFIG_VERSION', 23);
define('SCHEMA_VERSION', 86);
require_once "config.php";
require_once "sanity_config.php";

@ -1,4 +1,10 @@
<?php
if (!file_exists("config.php")) {
print "<b>Fatal Error</b>: You forgot to copy
<b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
exit;
}
set_include_path(get_include_path() . PATH_SEPARATOR . "include");
require_once "functions.php";

Loading…
Cancel
Save