aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-04-16 01:24:10 +0530
committerDhruv Goel <dhruv.goel92@gmail.com>2012-04-16 01:24:10 +0530
commit249d8ede1261f6736a1d245ad204bc2bca544945 (patch)
tree6377f6d9ab64491c734a9ba0722e3ed896feea6e /phpBB/includes
parent81eeafbb8dfb6f3511d689169a2ccc46f3d07704 (diff)
downloadforums-249d8ede1261f6736a1d245ad204bc2bca544945.tar
forums-249d8ede1261f6736a1d245ad204bc2bca544945.tar.gz
forums-249d8ede1261f6736a1d245ad204bc2bca544945.tar.bz2
forums-249d8ede1261f6736a1d245ad204bc2bca544945.tar.xz
forums-249d8ede1261f6736a1d245ad204bc2bca544945.zip
[ticket/10797] user rank is displayed in mcp_warn.php
When warning a user in MCP, the user's rank title and image are displayed. language key user rank also added. PHPBB3-10797
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_warn.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index 63e5b19155..1016204ff8 100644
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -308,7 +308,7 @@ class mcp_warn
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
}
- $rank_title = $rank_img = '';
+ get_user_rank($user_row['user_rank'], $user_row['user_posts'], $rank_title, $rank_img, $rank_img_src);
$avatar_img = get_user_avatar($user_row['user_avatar'], $user_row['user_avatar_type'], $user_row['user_avatar_width'], $user_row['user_avatar_height']);
$template->assign_vars(array(
@@ -413,7 +413,7 @@ class mcp_warn
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
}
- $rank_title = $rank_img = '';
+ get_user_rank($user_row['user_rank'], $user_row['user_posts'], $rank_title, $rank_img, $rank_img_src);
$avatar_img = get_user_avatar($user_row['user_avatar'], $user_row['user_avatar_type'], $user_row['user_avatar_width'], $user_row['user_avatar_height']);
// OK, they didn't submit a warning so lets build the page for them to do so