Skip to content

Commit

Permalink
Merge pull request bcit-ci#2036 from williamknauss/develop
Browse files Browse the repository at this point in the history
Children Drivers
  • Loading branch information
narfbg committed Nov 28, 2012
2 parents 719b60f + 0ab4d3a commit 539f34e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions system/libraries/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,16 @@ public function load_driver($child)
// 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
Expand Down

0 comments on commit 539f34e

Please sign in to comment.