aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-15 01:29:10 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-15 16:50:28 -0500
commite82833d4b8bc9241641577b12a779e12338ace39 (patch)
treef2fb1e9de2bfad363ba617934e5a82efc9ef79fa /phpBB/includes/functions_admin.php
parent5c496674f63b31e892d0f3bed7921feb947ed839 (diff)
downloadforums-e82833d4b8bc9241641577b12a779e12338ace39.tar
forums-e82833d4b8bc9241641577b12a779e12338ace39.tar.gz
forums-e82833d4b8bc9241641577b12a779e12338ace39.tar.bz2
forums-e82833d4b8bc9241641577b12a779e12338ace39.tar.xz
forums-e82833d4b8bc9241641577b12a779e12338ace39.zip
[ticket/10758] Dependency inject parameters into update_foes.
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.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 571f1acd1d..e8dd55813b 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2744,12 +2744,16 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
}
/**
-* Update foes - remove moderators and administrators from foe lists...
+* Removes moderators and administrators from foe lists.
+*
+* @param phpbb_db_driver $db Database connection
+* @param phpbb_auth $auth Authentication object
+* @param array|bool $group_id If an array, remove all members of this group from foe lists, or false to ignore
+* @param array|bool $user_id If an array, remove this user from foe lists, or false to ignore
+* @return null
*/
-function update_foes($group_id = false, $user_id = false)
+function phpbb_update_foes($db, $auth, $group_id = false, $user_id = false)
{
- global $db, $auth;
-
// update foes for some user
if (is_array($user_id) && sizeof($user_id))
{