X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fdefaultprofileblock.php;h=f451aa01883dfc618426804ccc34e0773b4d7e6b;hb=33e2f5b449d477e55bda7029f9e826d889e41eb5;hp=b8af14ac211b00f4e1967c093cff346d26c1d881;hpb=513c54fa89085fde783a73c298d61576f834b131;p=quix0rs-gnu-social.git diff --git a/lib/defaultprofileblock.php b/lib/defaultprofileblock.php index b8af14ac21..f451aa0188 100644 --- a/lib/defaultprofileblock.php +++ b/lib/defaultprofileblock.php @@ -63,13 +63,7 @@ class DefaultProfileBlock extends AccountProfileBlock 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); + return $this->profile->avatarUrl(AVATAR_STREAM_SIZE); } function location() @@ -86,4 +80,9 @@ class DefaultProfileBlock extends AccountProfileBlock { return null; } -} \ No newline at end of file + + function otherProfiles() + { + return array(); + } +}