diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-28 17:33:52 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-28 17:33:52 +0100 |
commit | 539f34e2d15b3745cc73c45738c2d8a160473dd2 (patch) | |
tree | c3bc75153290152b9883c5046b3b8a6b95737456 | |
parent | 719b60f7e84e7060b679a9359a487f5cbbb937bf (diff) | |
parent | 0ab4d3a71e0c65b717e1b3a95fa01e8cc37574b3 (diff) |
Merge pull request #2036 from williamknauss/develop
Children Drivers
-rw-r--r-- | system/libraries/Driver.php | 13 |
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 |