summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDarren Hill <dchill42@gmail.com>2011-08-31 14:28:16 +0200
committerDarren Hill <dchill42@gmail.com>2011-08-31 14:28:16 +0200
commit3bd8d1ad9273f12c47d1ce1f59d4140718a02e4f (patch)
tree6d9012f3a88b5361384795a1b49ea660c53c123d /system
parentc4e266b87f39d521ff1002fefa9df809c6b9bd61 (diff)
Removed ucfirst on Driver library name
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Driver.php4
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)))
{