From 6416029da67d3c075f6d94174b017650f3f7fb58 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 25 Jun 2011 21:03:39 +0000 Subject: 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 --- include/common.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/common.inc.php b/include/common.inc.php index 048290e19..0dd0bfb7f 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -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'); -- cgit v1.2.3