aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-07 23:04:41 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-07 23:04:41 +0200
commit32efd5de7389ed1ee8943b2b167ae427a6847d1f (patch)
tree5b75847557e33d5775e6fc024b35f391d100d037 /phpBB
parente0dbbfb4af87d301040d1bf5bcee0a64adb376ce (diff)
downloadforums-32efd5de7389ed1ee8943b2b167ae427a6847d1f.tar
forums-32efd5de7389ed1ee8943b2b167ae427a6847d1f.tar.gz
forums-32efd5de7389ed1ee8943b2b167ae427a6847d1f.tar.bz2
forums-32efd5de7389ed1ee8943b2b167ae427a6847d1f.tar.xz
forums-32efd5de7389ed1ee8943b2b167ae427a6847d1f.zip
[ticket/12428] Use the database to store the original version number
PHPBB3-12428
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);