aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_convert.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-15 01:19:55 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-15 16:50:28 -0500
commit5c496674f63b31e892d0f3bed7921feb947ed839 (patch)
treec0313b6e6cc99d24ce4ad440f124d226231cef90 /phpBB/install/install_convert.php
parentb6778802b3784da34db4890eabd6c64100a385fc (diff)
downloadforums-5c496674f63b31e892d0f3bed7921feb947ed839.tar
forums-5c496674f63b31e892d0f3bed7921feb947ed839.tar.gz
forums-5c496674f63b31e892d0f3bed7921feb947ed839.tar.bz2
forums-5c496674f63b31e892d0f3bed7921feb947ed839.tar.xz
forums-5c496674f63b31e892d0f3bed7921feb947ed839.zip
[ticket/10758] Dependency inject parameters into cache_moderators.
Also add phpbb prefix since the signature is being changed anyway. PHPBB3-10758
Diffstat (limited to 'phpBB/install/install_convert.php')
-rw-r--r--phpBB/install/install_convert.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php
index 9afe341ffa..15202768b8 100644
--- a/phpBB/install/install_convert.php
+++ b/phpBB/install/install_convert.php
@@ -1538,6 +1538,7 @@ class install_convert extends module
function finish_conversion()
{
global $db, $phpbb_root_path, $phpEx, $convert, $config, $language, $user, $template;
+ global $cache, $auth;
$db->sql_query('DELETE FROM ' . CONFIG_TABLE . "
WHERE config_name = 'convert_progress'
@@ -1547,7 +1548,7 @@ class install_convert extends module
$db->sql_query('DELETE FROM ' . SESSIONS_TABLE);
@unlink($phpbb_root_path . 'cache/data_global.' . $phpEx);
- cache_moderators();
+ phpbb_cache_moderators($db, $cache, $auth);
// And finally, add a note to the log
add_log('admin', 'LOG_INSTALL_CONVERTED', $convert->convertor_data['forum_name'], $config['version']);