summaryrefslogtreecommitdiffstats
path: root/system/libraries
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
commit2e0a49e8573aca9c63e72d7e7dcd3b0867b3dc81 (patch)
tree11a94d8d12076e7c2ee2c5a0729dbb97e20f4529 /system/libraries
parent42812532a901394d2188549fdb150d229edc6466 (diff)
swapping out preg_replace() in the driver library where str_replace() works just fine.
Diffstat (limited to 'system/libraries')
-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