aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-02-12 11:37:34 +0000
committermistic100 <mistic@piwigo.org>2013-02-12 11:37:34 +0000
commit9722255086986740db16f9c4b57395d244ce2fb0 (patch)
treeab3bc43ef76586e797baf9488b471aca76d1e510 /install.php
parente8bdcecfeb97a8f12d7c1de06f77067a4dd307e1 (diff)
feature:65 fix fatal error at the end of the install process, remove unused file and function
git-svn-id: http://piwigo.org/svn/trunk@20721 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install.php')
-rw-r--r--install.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/install.php b/install.php
index a6d31be88..49a224583 100644
--- a/install.php
+++ b/install.php
@@ -311,14 +311,14 @@ define(\'DB_COLLATE\', \'\');
PHPWG_ROOT_PATH.'install/piwigo_structure-mysql.sql',
DEFAULT_PREFIX_TABLE,
$prefixeTable,
- $dblayer
+ 'mysql'
);
// We fill the tables with basic informations
execute_sqlfile(
PHPWG_ROOT_PATH.'install/config.sql',
DEFAULT_PREFIX_TABLE,
$prefixeTable,
- $dblayer
+ 'mysql'
);
$query = '
@@ -467,6 +467,8 @@ else
}
session_name($conf['session_name']);
session_set_cookie_params(0, cookie_path());
+ register_shutdown_function('session_write_close');
+
$user = build_user(1, true);
log_user($user['id'], false);