From 5dee1fade795c808d1c90aaf008470ec6f960496 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 14 May 2013 12:46:09 +0200 Subject: [PATCH] include global condig and bail with error if not available --- public/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 0db937b5..e9100a57 100644 --- a/public/index.php +++ b/public/index.php @@ -29,7 +29,9 @@ session_start(); $session_id = session_id(); // Include our configuration (holding defines for the requires) -require_once(BASEPATH . 'include/config/global.inc.php'); +if (!include_once(BASEPATH . 'include/config/global.inc.php')) { + die('Unable to load site configuration'); +} // Load Classes, they name defines the $ variable used // We include all needed files here, even though our templates could load them themself