diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-15 01:19:55 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-15 16:50:28 -0500 |
commit | 5c496674f63b31e892d0f3bed7921feb947ed839 (patch) | |
tree | c0313b6e6cc99d24ce4ad440f124d226231cef90 /phpBB/includes/functions_admin.php | |
parent | b6778802b3784da34db4890eabd6c64100a385fc (diff) | |
download | forums-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/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 15930f9a2c..571f1acd1d 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2292,13 +2292,17 @@ function auto_prune($forum_id, $prune_mode, $prune_flags, $prune_days, $prune_fr } /** -* Cache moderators, called whenever permissions are changed via admin_permissions. Changes of username -* and group names must be carried through for the moderators table +* Cache moderators. Called whenever permissions are changed +* via admin_permissions. Changes of usernames and group names +* must be carried through for the moderators table +* +* @param phpbb_db_driver $db Database connection +* @param phpbb_cache_driver_interface Cache driver +* @param phpbb_auth $auth Authentication object +* @return null */ -function cache_moderators() +function phpbb_cache_moderators($db, $cache, $auth) { - global $db, $cache, $auth, $phpbb_root_path, $phpEx; - // Remove cached sql results $cache->destroy('sql', MODERATOR_CACHE_TABLE); |