install/includes/stages/install.php
changeset 1378 e58294b867c1
parent 1227 bdac73ed481e
child 1379 5cbd678df965
equal deleted inserted replaced
1377:fa2b0825bbc5 1378:e58294b867c1
    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