]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilesection.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / lib / profilesection.php
index a9482cd634cff9783d199d0fc9957e87808de590..676fcd35402d47a33f53902856239b262ee7a239 100644 (file)
@@ -86,8 +86,8 @@ class ProfileSection extends Section
                                        'rel' => 'contact member',
                                        'class' => 'url'));
         $this->out->text(' ');
-        $avatar = $profile->getAvatar(AVATAR_MINI_SIZE);
-        $this->out->element('img', array('src' => (($avatar) ? $avatar->displayUrl() :  Avatar::defaultImage(AVATAR_MINI_SIZE)),
+        $avatarUrl = $profile->avatarUrl(AVATAR_MINI_SIZE);
+        $this->out->element('img', array('src' => $avatarUrl,
                                     'width' => AVATAR_MINI_SIZE,
                                     'height' => AVATAR_MINI_SIZE,
                                     'class' => 'avatar photo',