Simplified some conditional syntax
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index 715bdf9..d615a13 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -868,12 +868,9 @@
{
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);
}
}