summaryrefslogtreecommitdiff
path: root/plugins/squirrelmail_usercopy
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-19 12:00:07 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-19 12:00:07 +0200
commit91f2271fac29340b5eee3bb6657456bd5d161548 (patch)
tree6412657c45bfc05877de4831ea608a8dc7ace13c /plugins/squirrelmail_usercopy
parent75666d3db2692d799bc719a917f7c31e22a269e3 (diff)
Replace rcube_mdb2 with rcube_db
Diffstat (limited to 'plugins/squirrelmail_usercopy')
-rw-r--r--plugins/squirrelmail_usercopy/squirrelmail_usercopy.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php b/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php
index ee6bcc04b..bfa489ae5 100644
--- a/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php
+++ b/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php
@@ -151,10 +151,10 @@ class squirrelmail_usercopy extends rcube_plugin
$this->prefs = array();
/* connect to squirrelmail database */
- $db = new rcube_mdb2($rcmail->config->get('squirrelmail_dsn'));
- $db->db_connect('r'); // connect in read mode
+ $db = rcube_db::factory($rcmail->config->get('squirrelmail_dsn'));
- // $db->set_debug(true);
+ $db->set_debug($rcmail->config->get('sql_debug'));
+ $db->db_connect('r'); // connect in read mode
/* retrieve prefs */
$userprefs_table = $rcmail->config->get('squirrelmail_userprefs_table');