aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/install/database_update.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 91d9a792d7..b1bfbc1839 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -116,13 +116,13 @@ $config = $phpbb_container->get('config');
set_config(null, null, null, $config);
set_config_count(null, null, null, $config);
-$orig_version = $this->cache->get('database_update_orig_version');
-if ($orig_version === false)
+if (!isset($config['version_update_from']))
{
- $orig_version = $config['version'];
- $cache->put('database_update_orig_version', $orig_version, 86400);
+ $config->set('version_update_from', $config['version']);
}
+$orig_version = $config['version_update_from'];
+
$user->add_lang(array('common', 'acp/common', 'install', 'migrator'));
// Add own hook handler, if present. :o
@@ -293,6 +293,6 @@ else
echo $user->lang['COMPLETE_LOGIN_TO_BOARD'];
}
-$cache->destroy('database_update_orig_version');
+$config->delete('version_update_from');
phpbb_end_update($cache, $config);