[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
This commit is contained in:
Dhruv Goel 2012-04-16 01:24:10 +05:30
parent 81eeafbb8d
commit 249d8ede12
2 changed files with 3 additions and 2 deletions

View file

@ -308,7 +308,7 @@ class mcp_warn
include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 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']); $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( $template->assign_vars(array(
@ -413,7 +413,7 @@ class mcp_warn
include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 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']); $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 // OK, they didn't submit a warning so lets build the page for them to do so

View file

@ -274,6 +274,7 @@ $lang = array_merge($lang, array(
'POST_REPORTED_SUCCESS' => 'This post has been successfully reported.', 'POST_REPORTED_SUCCESS' => 'This post has been successfully reported.',
'POST_UNLOCKED_SUCCESS' => 'Post unlocked successfully.', 'POST_UNLOCKED_SUCCESS' => 'Post unlocked successfully.',
'RANK' => 'User rank',
'READ_USERNOTES' => 'User notes', 'READ_USERNOTES' => 'User notes',
'READ_WARNINGS' => 'User warnings', 'READ_WARNINGS' => 'User warnings',
'REPORTER' => 'Reporter', 'REPORTER' => 'Reporter',