From 5650a6e9f7dc4c27d11e6f9fa211ca620b17ecb0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 20 Apr 2011 13:39:23 -0400 Subject: [PATCH] Just use avatarSize() method for SingleNoticeItem --- actions/shownotice.php | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/actions/shownotice.php b/actions/shownotice.php index 1e45694fae..4f35d40469 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -333,28 +333,8 @@ class ShownoticeAction extends OwnerDesignAction // @todo FIXME: Class documentation missing. class SingleNoticeItem extends DoFollowListItem { - /** - * show the avatar of the notice's author - * - * We use the larger size for single notice page. - * - * @return void - */ - function showAvatar() + function avatarSize() { - $avatar_size = AVATAR_PROFILE_SIZE; - - $avatar = $this->profile->getAvatar($avatar_size); - - $this->out->element('img', array('src' => ($avatar) ? - $avatar->displayUrl() : - Avatar::defaultImage($avatar_size), - 'class' => 'avatar photo', - 'width' => $avatar_size, - 'height' => $avatar_size, - 'alt' => - ($this->profile->fullname) ? - $this->profile->fullname : - $this->profile->nickname)); + return AVATAR_PROFILE_SIZE; } } -- 2.39.5