From e85e8f957aef57ce3cffa6882c8170726ba13f4a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 10 Jun 2011 14:44:46 -0700 Subject: [PATCH] Moved error class load up in front controller to match config and str loads. --- public/index.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/public/index.php b/public/index.php index d0c5f882..3a22aab4 100644 --- a/public/index.php +++ b/public/index.php @@ -27,9 +27,10 @@ define('EXT', '.php'); // -------------------------------------------------------------- -// Load the configuration and string classes. +// Load the configuration, error, and string classes. // -------------------------------------------------------------- require SYS_PATH.'config'.EXT; +require SYS_PATH.'error'.EXT; require SYS_PATH.'str'.EXT; // -------------------------------------------------------------- @@ -47,11 +48,6 @@ // -------------------------------------------------------------- error_reporting((System\Config::get('error.detail')) ? E_ALL | E_STRICT : 0); -// -------------------------------------------------------------- -// Ensure Error class loads before any errors fire. -// -------------------------------------------------------------- -class_exists('System\Error'); - // -------------------------------------------------------------- // Register the error handlers. // --------------------------------------------------------------