equal
deleted
inserted
replaced
27 echo '<h3>Installation error</h3> |
27 echo '<h3>Installation error</h3> |
28 <p>ERROR: That database driver is not supported.</p>'; |
28 <p>ERROR: That database driver is not supported.</p>'; |
29 return true; |
29 return true; |
30 } |
30 } |
31 |
31 |
32 $db = new $dbdriver(); |
32 $dbdriver_cls = have_pdo($dbdriver) ? "{$dbdriver}_pdo" : $dbdriver; |
|
33 |
|
34 $db = new $dbdriver_cls(); |
33 $result = $db->connect(); |
35 $result = $db->connect(); |
34 if ( !$result ) |
36 if ( !$result ) |
35 { |
37 { |
36 $ui->show_header(); |
38 $ui->show_header(); |
37 // FIXME: l10n |
39 // FIXME: l10n |