diff options
author | plegall <plg@piwigo.org> | 2011-06-25 21:03:39 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-06-25 21:03:39 +0000 |
commit | 6416029da67d3c075f6d94174b017650f3f7fb58 (patch) | |
tree | 49ec00e14f67953a7b740e6407f33498bbfa833e /include | |
parent | 5f3c1f85fe8da3c1a60562ddda73956caa2c45ba (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/common.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
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'); |