summaryrefslogtreecommitdiff
path: root/roundcubemail/installer/test.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/installer/test.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/installer/test.php')
-rw-r--r--roundcubemail/installer/test.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/roundcubemail/installer/test.php b/roundcubemail/installer/test.php
index bdaf3ee52..0f38da059 100644
--- a/roundcubemail/installer/test.php
+++ b/roundcubemail/installer/test.php
@@ -61,14 +61,9 @@ else {
$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 @@ if ($RCI->configured) {
$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 {