use stream-sized avatar for default profileblock

这个提交包含在:
Evan Prodromou 2011-03-14 15:19:56 -05:00
父节点 fbc11b72d7
当前提交 a661b22fad

查看文件

@ -56,6 +56,22 @@ class DefaultProfileBlock extends AccountProfileBlock
parent::__construct($out, $user->getProfile());
}
function avatarSize()
{
return AVATAR_STREAM_SIZE;
}
function avatar()
{
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
if (empty($avatar)) {
$avatar = $this->profile->getAvatar(73);
}
return (!empty($avatar)) ?
$avatar->displayUrl() :
Avatar::defaultImage(AVATAR_STREAM_SIZE);
}
function canEdit()
{
return true;