mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
feature 2365 added: Piwigo version is written in the database (as
"piwigo_db_version" in the config table). We only store the branch, not the release : 2.3 and not 2.3.1, because database structure is not changing between minor releases. git-svn-id: http://piwigo.org/svn/trunk@11511 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user