summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcmail.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-26 07:21:50 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-26 07:21:50 +0000
commitcb0e0eb2645167dd293b73f2afd31d55d4ddbc93 (patch)
treeed587d93a6e7c02b94fe3e27dcaab6b44b0335c5 /roundcubemail/program/include/rcmail.php
parentc2cba3634ed97e153b9f893cd6013812936ca572 (diff)
- Removed support for PEAR::DB driver
git-svn-id: https://svn.roundcube.net/trunk@1681 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
-rw-r--r--roundcubemail/program/include/rcmail.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index 21e9e2a15..8a061beb9 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/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');