From 9e8e5fa634ace418e6b34280133685485b97a9c0 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Tue, 26 Aug 2008 03:21:50 -0400 Subject: [PATCH] - Removed support for PEAR::DB driver --- installer/test.php | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/installer/test.php b/installer/test.php index bdaf3ee..0f38da0 100644 --- a/installer/test.php +++ b/installer/test.php @@ -61,14 +61,9 @@ $db_working = false; if ($RCI->configured) { - if (!empty($RCI->config['db_backend']) && !empty($RCI->config['db_dsnw'])) { + if (!empty($RCI->config['db_dsnw'])) { - echo 'Backend: '; - echo 'PEAR::' . strtoupper($RCI->config['db_backend']) . '<br />'; - - $dbclass = 'rcube_' . strtolower($RCI->config['db_backend']); - - $DB = new $dbclass($RCI->config['db_dsnw'], '', false); + $DB = new rcube_mdb2($RCI->config['db_dsnw'], '', false); $DB->db_connect('w'); if (!($db_error_msg = $DB->is_error())) { $RCI->pass('DSN (write)'); @@ -79,8 +74,6 @@ $RCI->fail('DSN (write)', $db_error_msg); echo '<p class="hint">Make sure that the configured database exists and that the user has write privileges<br />'; echo 'DSN: ' . $RCI->config['db_dsnw'] . '</p>'; - if ($RCI->config['db_backend'] == 'mdb2') - echo '<p class="hint">There are known problems with MDB2 running on PHP 4. Try setting <tt>db_backend</tt> to \'db\' instead</p>'; } } else { -- Gitblit v1.9.1