mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12428] Use the database to store the original version number
PHPBB3-12428
This commit is contained in:
parent
e0dbbfb4af
commit
32efd5de73
1 changed files with 5 additions and 5 deletions
|
@ -116,13 +116,13 @@ $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 = $this->cache->get('database_update_orig_version');
|
if (!isset($config['version_update_from']))
|
||||||
if ($orig_version === false)
|
|
||||||
{
|
{
|
||||||
$orig_version = $config['version'];
|
$config->set('version_update_from', $config['version']);
|
||||||
$cache->put('database_update_orig_version', $orig_version, 86400);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$orig_version = $config['version_update_from'];
|
||||||
|
|
||||||
$user->add_lang(array('common', 'acp/common', 'install', 'migrator'));
|
$user->add_lang(array('common', 'acp/common', 'install', 'migrator'));
|
||||||
|
|
||||||
// Add own hook handler, if present. :o
|
// Add own hook handler, if present. :o
|
||||||
|
@ -293,6 +293,6 @@ else
|
||||||
echo $user->lang['COMPLETE_LOGIN_TO_BOARD'];
|
echo $user->lang['COMPLETE_LOGIN_TO_BOARD'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$cache->destroy('database_update_orig_version');
|
$config->delete('version_update_from');
|
||||||
|
|
||||||
phpbb_end_update($cache, $config);
|
phpbb_end_update($cache, $config);
|
||||||
|
|
Loading…
Add table
Reference in a new issue