aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-01-30 11:12:22 +0000
committermistic100 <mistic@piwigo.org>2013-01-30 11:12:22 +0000
commit6f04aba061be1202b7f987db6bac03014cf01aeb (patch)
treedc59c3e896685d403019bbb5d167c1057af21119 /install.php
parent0bba3bfcf74c8da52c722fc06084c0e779178187 (diff)
feature:65 Add support for PHP mysqli extension, activated by default, remove returns of link_identifier
git-svn-id: http://piwigo.org/svn/trunk@20462 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install.php')
-rw-r--r--install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.php b/install.php
index 8d8704087..bc9bc2144 100644
--- a/install.php
+++ b/install.php
@@ -128,7 +128,7 @@ $dbhost = (!empty($_POST['dbhost'])) ? $_POST['dbhost'] : 'localhost';
$dbuser = (!empty($_POST['dbuser'])) ? $_POST['dbuser'] : '';
$dbpasswd = (!empty($_POST['dbpasswd'])) ? $_POST['dbpasswd'] : '';
$dbname = (!empty($_POST['dbname'])) ? $_POST['dbname'] : '';
-$dblayer = 'mysql';
+$dblayer = extension_loaded('mysqli') ? 'mysqli' : 'mysql';
$admin_name = (!empty($_POST['admin_name'])) ? $_POST['admin_name'] : '';
$admin_pass1 = (!empty($_POST['admin_pass1'])) ? $_POST['admin_pass1'] : '';