summaryrefslogtreecommitdiffstats
path: root/system/database/DB.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-25 17:38:34 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-25 17:38:34 +0200
commit44107771c528fe7f1c4a2b3e6413c323b175aa25 (patch)
tree235c632902716a05d05c87d15d5b6d652bfd6135 /system/database/DB.php
parent5f1936d363e081fb9f22eb6517e04a0657bf5790 (diff)
Some fixes
Diffstat (limited to 'system/database/DB.php')
-rw-r--r--system/database/DB.php4
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);
}
}