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:
parent
5f3c1f85fe
commit
6416029da6
1 changed files with 7 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue