From 719b480eaaa3459497c008839606a96cc8f368e1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 8 Nov 2010 13:08:59 -0500 Subject: use subclassing to change notice list output for single notice --- lib/noticelist.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/noticelist.php') diff --git a/lib/noticelist.php b/lib/noticelist.php index bdf2530b3..6f82c9269 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -327,11 +327,8 @@ class NoticeListItem extends Widget function showAvatar() { - if ('shownotice' === $this->out->trimmed('action')) { - $avatar_size = AVATAR_PROFILE_SIZE; - } else { - $avatar_size = AVATAR_STREAM_SIZE; - } + $avatar_size = AVATAR_STREAM_SIZE; + $avatar = $this->profile->getAvatar($avatar_size); $this->out->element('img', array('src' => ($avatar) ? -- cgit v1.2.3-54-g00ecf