diff options
-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 |