mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
[ticket/9140] Check current board version in incremental update packages
Since we do not want to limit the updater functionality we only display a prominent warning when the current board version does not match the version the update files are meant to update from. PHPBB3-9140
This commit is contained in:
parent
b7ae0fe4e9
commit
2ba6360e43
1 changed files with 11 additions and 0 deletions
|
@ -192,6 +192,17 @@ class install_update extends module
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the update files are actually meant to update from the current version
|
||||||
|
if ($config['version'] != $this->update_info['version']['from'])
|
||||||
|
{
|
||||||
|
$this->unequal_version = true;
|
||||||
|
|
||||||
|
$template->assign_vars(array(
|
||||||
|
'S_ERROR' => true,
|
||||||
|
'ERROR_MSG' => sprintf($user->lang['INCOMPATIBLE_UPDATE_FILES'], $config['version'], $this->update_info['version']['from'], $this->update_info['version']['to']),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
// Check if the update files stored are for the latest version...
|
// Check if the update files stored are for the latest version...
|
||||||
if ($this->latest_version != $this->update_info['version']['to'])
|
if ($this->latest_version != $this->update_info['version']['to'])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue