summaryrefslogtreecommitdiffstats
path: root/system/libraries/Driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-28 17:33:52 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-28 17:33:52 +0100
commit539f34e2d15b3745cc73c45738c2d8a160473dd2 (patch)
treec3bc75153290152b9883c5046b3b8a6b95737456 /system/libraries/Driver.php
parent719b60f7e84e7060b679a9359a487f5cbbb937bf (diff)
parent0ab4d3a71e0c65b717e1b3a95fa01e8cc37574b3 (diff)
Merge pull request #2036 from williamknauss/develop
Children Drivers
Diffstat (limited to 'system/libraries/Driver.php')
-rw-r--r--system/libraries/Driver.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/system/libraries/Driver.php b/system/libraries/Driver.php
index 72f376466..8323e8f01 100644
--- a/system/libraries/Driver.php
+++ b/system/libraries/Driver.php
@@ -160,9 +160,16 @@ class CI_Driver_Library {
// Did we finally find the class?
if ( ! class_exists($class_name))
{
- $msg = 'Unable to load the requested driver: '.$class_name;
- log_message('error', $msg);
- show_error($msg);
+ if (class_exists($child_name))
+ {
+ $class_name = $child_name;
+ }
+ else
+ {
+ $msg = 'Unable to load the requested driver: '.$class_name;
+ log_message('error', $msg);
+ show_error($msg);
+ }
}
// Instantiate, decorate and add child