diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-22 20:26:47 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-22 20:26:47 +0000 |
| commit | 04f7c1da6970ee0b34670d27edb0e45480516314 (patch) | |
| tree | d2500ceef33683c8105094f8eca81be05b246841 /phpBB/includes/functions_display.php | |
| parent | a9274f1d63f0aa06a787faa5684e81aaaa3613bf (diff) | |
| download | forums-04f7c1da6970ee0b34670d27edb0e45480516314.tar forums-04f7c1da6970ee0b34670d27edb0e45480516314.tar.gz forums-04f7c1da6970ee0b34670d27edb0e45480516314.tar.bz2 forums-04f7c1da6970ee0b34670d27edb0e45480516314.tar.xz forums-04f7c1da6970ee0b34670d27edb0e45480516314.zip | |
Only display special ranks to guests; no longer display normal ranks for guests (Bug #36735)
[changed parameters for get_user_rank(), breaks backward compatibility]
git-svn-id: file:///svn/phpbb/trunk@9083 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
| -rw-r--r-- | phpBB/includes/functions_display.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index c52b6c9c0f..0a6194a4b5 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1141,6 +1141,7 @@ function watch_topic_forum($mode, &$s_watching, $user_id, $forum_id, $topic_id, /** * Get user rank title and image * +* @param int $user_id the users user id * @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 @@ -1148,7 +1149,7 @@ function watch_topic_forum($mode, &$s_watching, $user_id, $forum_id, $topic_id, * @param string &$rank_img_src the rank image source is stored here after execution * */ -function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src) +function get_user_rank($user_id, $user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src) { global $ranks, $config; @@ -1164,7 +1165,7 @@ function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank $rank_img = (!empty($ranks['special'][$user_rank]['rank_image'])) ? '<img src="' . PHPBB_ROOT_PATH . $config['ranks_path'] . '/' . $ranks['special'][$user_rank]['rank_image'] . '" alt="' . $ranks['special'][$user_rank]['rank_title'] . '" title="' . $ranks['special'][$user_rank]['rank_title'] . '" />' : ''; $rank_img_src = (!empty($ranks['special'][$user_rank]['rank_image'])) ? PHPBB_ROOT_PATH . $config['ranks_path'] . '/' . $ranks['special'][$user_rank]['rank_image'] : ''; } - else + else if ($user_id != ANONYMOUS) { if (!empty($ranks['normal'])) { |
