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:
plegall 2011-06-25 21:03:39 +00:00
parent 5f3c1f85fe
commit 6416029da6

View file

@ -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');