diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-14 01:19:21 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-14 01:19:21 +0000 |
commit | 99c0f09343413dada262117995fc4833332fdfd4 (patch) | |
tree | 9ea374d4a43a5969a8387981ec21d1517fa62c6c /phpBB/viewtopic.php | |
parent | d9b62e9964ccfdb8f2802a64bcf4b25df79e56fa (diff) | |
download | forums-99c0f09343413dada262117995fc4833332fdfd4.tar forums-99c0f09343413dada262117995fc4833332fdfd4.tar.gz forums-99c0f09343413dada262117995fc4833332fdfd4.tar.bz2 forums-99c0f09343413dada262117995fc4833332fdfd4.tar.xz forums-99c0f09343413dada262117995fc4833332fdfd4.zip |
Fixed problem with anon users not being able to view avatars
git-svn-id: file:///svn/phpbb/trunk@659 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 34e2f4352a..4af1e24c27 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -243,6 +243,9 @@ $template->assign_vars(array( "L_VIEW_NEXT_TOPIC" => $lang['View_next_topic'], "L_VIEW_PREVIOUS_TOPIC" => $lang['View_previous_topic'], + "IMG_POST" => $images['new_topic'], + "IMG_REPLY" => ( ($forum_row[0]['topic_status'] == TOPIC_LOCKED) ? $images['locked_topic'] : $images['reply_topic'] ), + "U_VIEW_FORUM" => $view_forum_url, "U_VIEW_OLDER_TOPIC" => $view_prev_topic_url, "U_VIEW_NEWER_TOPIC" => $view_next_topic_url, @@ -279,7 +282,7 @@ for($i = 0; $i < $total_posts; $i++) $poster_joined = ($postrow[$i]['user_id'] != ANONYMOUS) ? $lang['Joined'] . ": " . create_date($board_config['default_dateformat'], $postrow[$i]['user_regdate'], $board_config['default_timezone']) : ""; - if($postrow[$i]['user_avatar'] != "" && $userdata['user_id'] != ANONYMOUS) + if($postrow[$i]['user_avatar'] != "" && $poster_id != ANONYMOUS) { $poster_avatar = (strstr("http", $postrow[$i]['user_avatar']) && $board_config['allow_avatar_remote']) ? "<img src=\"" . $postrow[$i]['user_avatar'] . "\">" : "<img src=\"" . $board_config['avatar_path'] . "/" . $postrow[$i]['user_avatar'] . "\">"; } |