summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
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);
}
}