diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-17 04:41:37 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-17 04:41:37 +0100 |
commit | 0796b8df9e0abcda2caeb078aef2722a0f9aa193 (patch) | |
tree | 02e95eea9240d3364bcefa67380e33aff7d83bd1 /system/libraries | |
parent | bafe651a15358793689e2e2f7efcfcdfec2869ae (diff) |
moved an strtolower higher into the init_class function for case insensitivity
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Loader.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index b78790d6c..842e375a9 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -820,6 +820,8 @@ class CI_Loader { */
function _ci_init_class($class, $prefix = '', $config = FALSE)
{
+ $class = strtolower($class);
+
// Is there an associated config file for this class?
if ($config === NULL)
{
@@ -838,8 +840,7 @@ class CI_Loader { $name = $prefix.$class;
}
- // Set the variable name we will assign the class to
- $class = strtolower($class);
+ // Set the variable name we will assign the class to
$classvar = ( ! isset($this->_ci_varmap[$class])) ? $class : $this->_ci_varmap[$class];
// Instantiate the class
|