aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_compatibility.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-08-18 16:13:32 +0200
committerTristan Darricau <github@nicofuma.fr>2014-08-18 16:32:05 +0200
commit496cc64bc63befc2bb6f250e1712cd5a00986aef (patch)
treea93acde193e432f43bb875025c51b1b241ead7fd /phpBB/includes/functions_compatibility.php
parent685bdc87e6480597c7d7f30a7b9477c543099d2e (diff)
downloadforums-496cc64bc63befc2bb6f250e1712cd5a00986aef.tar
forums-496cc64bc63befc2bb6f250e1712cd5a00986aef.tar.gz
forums-496cc64bc63befc2bb6f250e1712cd5a00986aef.tar.bz2
forums-496cc64bc63befc2bb6f250e1712cd5a00986aef.tar.xz
forums-496cc64bc63befc2bb6f250e1712cd5a00986aef.zip
[ticket/12993] Rename to phpbb_get_user_rank
PHPBB3-12993
Diffstat (limited to 'phpBB/includes/functions_compatibility.php')
-rw-r--r--phpBB/includes/functions_compatibility.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/phpBB/includes/functions_compatibility.php b/phpBB/includes/functions_compatibility.php
index 093cb19538..b371978ee5 100644
--- a/phpBB/includes/functions_compatibility.php
+++ b/phpBB/includes/functions_compatibility.php
@@ -166,3 +166,21 @@ function update_foes($group_id = false, $user_id = false)
global $db, $auth;
return phpbb_update_foes($db, $auth, $group_id, $user_id);
}
+
+/**
+* Get user rank title and image
+*
+* @param int $user_rank the current stored users rank id
+* @param int $user_posts the users number of posts
+* @param string &$rank_title the rank title will be stored here after execution
+* @param string &$rank_img the rank image as full img tag is stored here after execution
+* @param string &$rank_img_src the rank image source is stored here after execution
+*
+* @deprecated 3.1
+*
+* Note: since we do not want to break backwards-compatibility, this function will only properly assign ranks to guests if you call it for them with user_posts == false
+*/
+function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)
+{
+ phpbb_get_user_rank(array('user_rank' => $user_rank), $user_posts, $rank_title, $rank_img, $rank_img_src);
+}