1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

Merge branch 'ticket/nickvergessen/9140' into develop-olympus

* ticket/nickvergessen/9140:
  [ticket/9140] Check current board version in incremental update packages
This commit is contained in:
Nils Adermann 2010-11-10 19:00:45 +01:00
commit cdb57aaa64

View File

@ -193,13 +193,13 @@ class install_update extends module
}
// Check if the update files are actually meant to update from the current version
if ($config['version'] != $this->update_info['version']['from'])
if ($this->current_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']),
'ERROR_MSG' => sprintf($user->lang['INCOMPATIBLE_UPDATE_FILES'], $this->current_version, $this->update_info['version']['from'], $this->update_info['version']['to']),
));
}