install/includes/stages/database_post.php
changeset 1379 5cbd678df965
parent 1227 bdac73ed481e
--- a/install/includes/stages/database_post.php	Wed Aug 21 22:50:34 2013 -0400
+++ b/install/includes/stages/database_post.php	Wed Aug 21 23:11:58 2013 -0400
@@ -17,9 +17,9 @@
 	die();
 
 // Start up the DBAL
-require( ENANO_ROOT . '/includes/dbal.php' );
 require( ENANO_ROOT . '/includes/sql_parse.php' );
-$dbal = new $driver();
+$driver_cls = have_pdo($driver) ? "{$driver}_pdo" : $driver;
+$dbal = new $driver_cls();
 $db_host =& $_POST['db_host'];
 $db_port =& $_POST['db_port'];
 $db_user =& $_POST['db_user'];