diff options
author | Darren Hill <dchill42@gmail.com> | 2011-08-31 14:28:16 +0200 |
---|---|---|
committer | Darren Hill <dchill42@gmail.com> | 2011-08-31 14:28:16 +0200 |
commit | 3bd8d1ad9273f12c47d1ce1f59d4140718a02e4f (patch) | |
tree | 6d9012f3a88b5361384795a1b49ea660c53c123d /system/libraries/Driver.php | |
parent | c4e266b87f39d521ff1002fefa9df809c6b9bd61 (diff) |
Removed ucfirst on Driver library name
Diffstat (limited to 'system/libraries/Driver.php')
-rw-r--r-- | system/libraries/Driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Driver.php b/system/libraries/Driver.php index e958fc67f..c3bcc252e 100644 --- a/system/libraries/Driver.php +++ b/system/libraries/Driver.php @@ -66,8 +66,8 @@ class CI_Driver_Library { $child_class = $this->lib_name.'_'.$child; // Remove the CI_ prefix and lowercase - $lib_name = ucfirst(strtolower(str_replace('CI_', '', $this->lib_name))); - $driver_name = strtolower(str_replace('CI_', '', $child_class)); + $lib_name = strtolower(preg_replace('/^CI_/', '', $this->lib_name)); + $driver_name = strtolower(preg_replace('/^CI_/', '', $child_class)); if (in_array($driver_name, array_map('strtolower', $this->valid_drivers))) { |