use stream-sized avatar for default profileblock
This commit is contained in:
parent
fbc11b72d7
commit
a661b22fad
|
@ -56,6 +56,22 @@ class DefaultProfileBlock extends AccountProfileBlock
|
||||||
parent::__construct($out, $user->getProfile());
|
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()
|
function canEdit()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user