diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-25 17:38:34 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-25 17:38:34 +0200 |
commit | 44107771c528fe7f1c4a2b3e6413c323b175aa25 (patch) | |
tree | 235c632902716a05d05c87d15d5b6d652bfd6135 /system/database/DB.php | |
parent | 5f1936d363e081fb9f22eb6517e04a0657bf5790 (diff) |
Some fixes
Diffstat (limited to 'system/database/DB.php')
-rw-r--r-- | system/database/DB.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB.php b/system/database/DB.php index 313728f07..13a447d15 100644 --- a/system/database/DB.php +++ b/system/database/DB.php @@ -158,12 +158,12 @@ function &DB($params = '', $query_builder_override = NULL) // Check for a subdriver if ( ! empty($DB->subdriver)) { - $driver_file = BASEPATH.'database/drivers/'.$param['dbdriver'].'/subdrivers/'.$params['dbdriver'].'_'.$params['subdriver'].'_driver.php'; + $driver_file = BASEPATH.'database/drivers/'.$DB->dbdriver.'/subdrivers/'.$DB->dbdriver.'_'.$DB->subdriver.'_driver.php'; if (file_exists($driver_file)) { require_once($driver_file); - $driver = 'CI_DB_'.$params['dbdriver'].'_'.$params['subdriver'].'_driver'; + $driver = 'CI_DB_'.$DB->dbdriver.'_'.$DB->subdriver.'_driver'; $DB = new $driver($params); } } |