summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authordchill42 <dchill42@gmail.com>2012-08-27 03:45:35 +0200
committerdchill42 <dchill42@gmail.com>2012-08-27 03:45:35 +0200
commitaee9265602c3bb30a1f7f3dfd562b9b36cc612a4 (patch)
treeb92c3ba77623848f02a5e9a0656b97e080b19d26 /system/core/Loader.php
parentb3816b794592873a4e98187e66745544b463e933 (diff)
Fixed select_driver(), cookie sess_destroy(), and native cookie name conflict
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index a62cf06f5..01d99dd37 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -911,7 +911,7 @@ class CI_Loader {
$class = substr($class, $last_slash);
// Check for match and driver base class
- if (strtolower($subdir) == strtolower($class) && ! class_exists('CI_Driver_Library'))
+ if (strtolower(trim($subdir, '/')) == strtolower($class) && ! class_exists('CI_Driver_Library'))
{
// We aren't instantiating an object here, just making the base class available
require BASEPATH.'libraries/Driver.php';
@@ -1005,6 +1005,12 @@ class CI_Loader {
$path = strtolower($class).'/'.$class;
return $this->_ci_load_class($path, $params);
}
+ else if (ucfirst($subdir) != $subdir)
+ {
+ // Lowercase subdir failed - retry capitalized
+ $path = ucfirst($subdir).$class;
+ return $this->_ci_load_class($path, $params);
+ }
// If we got this far we were unable to find the requested class.
// We do not issue errors if the load call failed due to a duplicate request