summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-07-10 20:58:03 +0200
committerDerek Jones <derek.jones@ellislab.com>2009-07-10 20:58:03 +0200
commitc8dddd97b96f74ebf080fedde5a2630019783c78 (patch)
treea1afa316d835281accad6ea0c1c98a6629fec85e /system/libraries
parent16d40d713b1d8d924ac20b542d344552a4c29648 (diff)
Simplified some conditional syntax
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Loader.php7
1 files changed, 2 insertions, 5 deletions
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);
}
}