From c8dddd97b96f74ebf080fedde5a2630019783c78 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 10 Jul 2009 18:58:03 +0000 Subject: Simplified some conditional syntax --- system/libraries/Loader.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'system') diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index 715bdf97c..d615a1363 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -868,12 +868,9 @@ class CI_Loader { { include_once(APPPATH.'config/'.strtolower($class).EXT); } - else + elseif (file_exists(APPPATH.'config/'.ucfirst(strtolower($class)).EXT)) { - if (file_exists(APPPATH.'config/'.ucfirst(strtolower($class)).EXT)) - { - include_once(APPPATH.'config/'.ucfirst(strtolower($class)).EXT); - } + include_once(APPPATH.'config/'.ucfirst(strtolower($class)).EXT); } } -- cgit v1.2.3-24-g4f1b