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

https://tracker.phpbb.com/browse/PHPBB3-12428

PHPBB3-12428
This commit is contained in:
Tristan Darricau 2014-05-07 02:07:30 +02:00
parent 571d6ae852
commit e0dbbfb4af

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'];
$orig_version = $this->cache->get('database_update_orig_version');
if ($orig_version === false)
{
$orig_version = $config['version'];
$cache->put('database_update_orig_version', $orig_version, 86400);
}
$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'];
} }
$cache->destroy('database_update_orig_version');
phpbb_end_update($cache, $config); phpbb_end_update($cache, $config);