aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-05-07 00:34:56 +0000
committerplegall <plg@piwigo.org>2010-05-07 00:34:56 +0000
commit48ab33321212614bb37e180f17c84139665de7d1 (patch)
treec550ae73be0cd1a75187fb7f9d0d4dbef298c8f9 /admin/include
parenta56af865c572bd1f9853b2d858df648e154e764e (diff)
bug 1648 fixed: add the pwg_db_check_version functions for pdo-sqlite, sqlite
and pgsql, also make the $pwg_db_link global in the install_db_connect function so that it can be used in SQLite functions. bug fixed: with pdo-sqlite, pwg_db_num_rows always returns 0, so when initializing user data, it tries to insert the same row twice. git-svn-id: http://piwigo.org/svn/trunk@6090 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions_install.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php
index 9e02490ca..4c2888a3c 100644
--- a/admin/include/functions_install.inc.php
+++ b/admin/include/functions_install.inc.php
@@ -143,6 +143,8 @@ function activate_core_themes()
function install_db_connect(&$infos, &$errors)
{
+ global $pwg_db_link;
+
try
{
$pwg_db_link = pwg_db_connect($_POST['dbhost'], $_POST['dbuser'], $_POST['dbpasswd'], $_POST['dbname']);