mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 09:22:21 +02:00
bug 2364 fixed: if database upgrade is missing, we redirect to upgrade.php
git-svn-id: http://piwigo.org/svn/branches/2.2@11510 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -132,6 +132,13 @@ catch (Exception $e)
|
||||
pwg_db_check_charset();
|
||||
|
||||
load_conf_from_db();
|
||||
|
||||
// Version 2.2 specific, in case of problem during automatic upgrade
|
||||
if (!isset($conf['week_starts_on']))
|
||||
{
|
||||
redirect(get_root_url().'upgrade.php');
|
||||
}
|
||||
|
||||
load_plugins();
|
||||
|
||||
include(PHPWG_ROOT_PATH.'include/user.inc.php');
|
||||
|
||||
Reference in New Issue
Block a user