From 0796b8df9e0abcda2caeb078aef2722a0f9aa193 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 17 Jan 2008 03:41:37 +0000 Subject: moved an strtolower higher into the init_class function for case insensitivity --- system/libraries/Loader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system/libraries/Loader.php') 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 -- cgit v1.2.3-24-g4f1b