aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 048290e19..6081220e6 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -132,6 +132,15 @@ catch (Exception $e)
pwg_db_check_charset();
load_conf_from_db();
+
+if (!$conf['check_upgrade_feed'])
+{
+ if (!isset($conf['piwigo_db_version']) or $conf['piwigo_db_version'] != get_branch_from_version(PHPWG_VERSION))
+ {
+ redirect(get_root_url().'upgrade.php');
+ }
+}
+
load_plugins();
include(PHPWG_ROOT_PATH.'include/user.inc.php');