Merge pull request #2422 from Nicofuma/ticket/12428

[ticket/12428] Incorrect from version in database update log entry

* Nicofuma/ticket/12428:
  [ticket/12428] Use the database to store the original version number
  [ticket/12428] Incorrect from version in database update log entry
This commit is contained in:
Joas Schilling 2014-05-08 12:56:59 +02:00
commit 0c3c77c6bf

View file

@ -115,7 +115,13 @@ request_var('', 0, false, false, $request); // "dependency injection" for a func
$config = $phpbb_container->get('config'); $config = $phpbb_container->get('config');
set_config(null, null, null, $config); set_config(null, null, null, $config);
set_config_count(null, null, null, $config); set_config_count(null, null, null, $config);
$orig_version = $config['version'];
if (!isset($config['version_update_from']))
{
$config->set('version_update_from', $config['version']);
}
$orig_version = $config['version_update_from'];
$user->add_lang(array('common', 'acp/common', 'install', 'migrator')); $user->add_lang(array('common', 'acp/common', 'install', 'migrator'));
@ -287,4 +293,6 @@ else
echo $user->lang['COMPLETE_LOGIN_TO_BOARD']; echo $user->lang['COMPLETE_LOGIN_TO_BOARD'];
} }
$config->delete('version_update_from');
phpbb_end_update($cache, $config); phpbb_end_update($cache, $config);