From a42c754c31761767cd1ca6dcfe416671409f5435 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 22 May 2010 01:09:22 +0300 Subject: Fix --- MainApp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MainApp.php') diff --git a/MainApp.php b/MainApp.php index e55a74a..6007bd0 100644 --- a/MainApp.php +++ b/MainApp.php @@ -8,7 +8,7 @@ class MainApp //// // Fire up the application static public function init() - { + { @list($controller, $param, $action) = App::url(); // no action given, read default one @@ -81,7 +81,7 @@ class MainApp if (!file_exists($cpath)) { trigger_error('Failed to open config file', E_USER_ERROR); - exit(); + return false; } $config = parse_ini_file($cpath, true); -- cgit v1.2.3