]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticesection.php
Move common_avatar_* functions to Avatar
[quix0rs-gnu-social.git] / lib / noticesection.php
index aa8e0322985c91fd7a49e95fe13fcfdf1fe0604c..97b51752965c1092c7bf7867e6d0aade184373ea 100644 (file)
@@ -82,7 +82,7 @@ class NoticeSection extends Section
                                             $profile->nickname,
                                             'href' => $profile->profileurl,
                                             'class' => 'url'));
-        $this->out->element('img', array('src' => (($avatar) ? common_avatar_display_url($avatar) :  common_default_avatar(AVATAR_MINI_SIZE)),
+        $this->out->element('img', array('src' => (($avatar) ? $avatar->displayUrl() :  Avatar::defaultImage(AVATAR_MINI_SIZE)),
                                          'width' => AVATAR_MINI_SIZE,
                                          'height' => AVATAR_MINI_SIZE,
                                          'class' => 'avatar photo',