]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mailbox.php
Move common_avatar_* functions to Avatar
[quix0rs-gnu-social.git] / lib / mailbox.php
index e8323dc289917c9fd3b07d5bb0ac021cf3fc260a..d77234549af7f27bc33ece11ddcfca4719ae1c40 100644 (file)
@@ -183,8 +183,8 @@ class MailboxAction extends PersonalAction
                                        'class' => 'url'));
         $avatar = $profile->getAvatar(AVATAR_STREAM_SIZE);
         $this->element('img', array('src' => ($avatar) ?
-                                    common_avatar_display_url($avatar) :
-                                    common_default_avatar(AVATAR_STREAM_SIZE),
+                                    $avatar->displayUrl() :
+                                    Avatar::defaultImage(AVATAR_STREAM_SIZE),
                                     'class' => 'photo avatar',
                                     'width' => AVATAR_STREAM_SIZE,
                                     'height' => AVATAR_STREAM_SIZE,