]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SubMirror/forms/editmirror.php
Modern version of XMPPHP extlib
[quix0rs-gnu-social.git] / plugins / SubMirror / forms / editmirror.php
index 1fc13e8212059f78732658a27f44aa6078cbb706..704998057d67f91049681d575d4d6fd9b4f2dc48 100644 (file)
@@ -64,7 +64,7 @@ class EditMirrorForm extends Form
         $this->out->hidden('profile', $this->profile->id);
 
         $this->out->elementStart('div', array('style' => 'float: left; width: 80px;'));
-        $img = $this->getAvatar($this->profile);
+        $img = $this->profile->avatarUrl(AVATAR_STREAM_SIZE);
         $feed = $this->getFeed($this->profile);
         $this->out->elementStart('a', array('href' => $this->profile->profileurl));
         $this->out->element('img', array('src' => $img, 'style' => 'float: left'));
@@ -130,16 +130,6 @@ class EditMirrorForm extends Form
         $this->out->elementEnd('fieldset');
     }
 
-    private function getAvatar($profile)
-    {
-        $avatar = $this->profile->getAvatar(48);
-        if ($avatar) {
-            return $avatar->displayUrl();
-        } else {
-            return Avatar::defaultImage(48);
-        }
-    }
-
     private function getFeed($profile)
     {
         // Ok this is a bit of a hack. ;)