summaryrefslogtreecommitdiffstats
path: root/system/libraries/Driver.php
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2011-04-25 22:00:45 +0200
committerGreg Aker <greg.aker@ellislab.com>2011-04-25 22:00:45 +0200
commit28bda7fd05d5261e0da1702e789cfedc6ab423b4 (patch)
tree0e6d9b1f4bf1172075f05105bc4484bd5e0cebbf /system/libraries/Driver.php
parentc0d129c4d248471c2dfdc4584c2b00c4fcf62cb3 (diff)
swapping out preg_replace() in the driver library where str_replace() works just fine.
Diffstat (limited to 'system/libraries/Driver.php')
-rw-r--r--system/libraries/Driver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Driver.php b/system/libraries/Driver.php
index b90b5aba6..1e01fcc1f 100644
--- a/system/libraries/Driver.php
+++ b/system/libraries/Driver.php
@@ -43,11 +43,11 @@ class CI_Driver_Library {
// The class will be prefixed with the parent lib
$child_class = $this->lib_name.'_'.$child;
-
+
// Remove the CI_ prefix and lowercase
- $lib_name = ucfirst(strtolower(preg_replace('/^CI_/', '', $this->lib_name)));
- $driver_name = strtolower(preg_replace('/^CI_/', '', $child_class));
-
+ $lib_name = ucfirst(strtolower(str_replace('CI_', '', $this->lib_name)));
+ $driver_name = strtolower(str_replace('CI_', '', $child_class));
+
if (in_array($driver_name, array_map('strtolower', $this->valid_drivers)))
{
// check and see if the driver is in a separate file