mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12428] Incorrect from version in database update log entry
https://tracker.phpbb.com/browse/PHPBB3-12428 PHPBB3-12428
This commit is contained in:
parent
571d6ae852
commit
e0dbbfb4af
1 changed files with 9 additions and 1 deletions
|
@ -115,7 +115,13 @@ request_var('', 0, false, false, $request); // "dependency injection" for a func
|
|||
$config = $phpbb_container->get('config');
|
||||
set_config(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'));
|
||||
|
||||
|
@ -287,4 +293,6 @@ else
|
|||
echo $user->lang['COMPLETE_LOGIN_TO_BOARD'];
|
||||
}
|
||||
|
||||
$cache->destroy('database_update_orig_version');
|
||||
|
||||
phpbb_end_update($cache, $config);
|
||||
|
|
Loading…
Add table
Reference in a new issue