diff options
author | alecpl <alec@alec.pl> | 2008-08-26 07:21:50 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-08-26 07:21:50 +0000 |
commit | 9e8e5fa634ace418e6b34280133685485b97a9c0 (patch) | |
tree | 80ae14092bef204fe4689e83d72542af5d152d46 /program/include/rcmail.php | |
parent | 6ed25604a9f3d4a57b12ad1364af1690f43ec282 (diff) |
- Removed support for PEAR::DB driver
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 21e9e2a15..8a061beb9 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -216,10 +216,9 @@ class rcmail public function get_dbh() { if (!$this->db) { - $dbclass = "rcube_" . $this->config->get('db_backend', 'mdb2'); $config_all = $this->config->all(); - $this->db = new $dbclass($config_all['db_dsnw'], $config_all['db_dsnr'], $config_all['db_persistent']); + $this->db = new rcube_mdb2($config_all['db_dsnw'], $config_all['db_dsnr'], $config_all['db_persistent']); $this->db->sqlite_initials = INSTALL_PATH . 'SQL/sqlite.initial.sql'; $this->db->set_debug((bool)$config_all['sql_debug']); $this->db->db_connect('w'); |