From 9da0e4a2ff84b097cf436b2641fc056315278f55 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 12 Dec 2011 15:19:34 +0400 Subject: [PATCH] fix 500 error on missing config.php --- include/sanity_check.php | 6 +++--- index.php | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/sanity_check.php b/include/sanity_check.php index 3e5c0980..2769b4b5 100644 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -1,15 +1,15 @@ Fatal Error: You forgot to copy config.php-dist to config.php and edit it.\n"; exit; } + define('EXPECTED_CONFIG_VERSION', 23); + define('SCHEMA_VERSION', 86); + require_once "config.php"; require_once "sanity_config.php"; diff --git a/index.php b/index.php index 5b5560a9..76b1d13c 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,10 @@ Fatal Error: You forgot to copy + config.php-dist to config.php and edit it.\n"; + exit; + } + set_include_path(get_include_path() . PATH_SEPARATOR . "include"); require_once "functions.php"; -- 2.39.5