]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix problem with AvatarLink in which it was sometimes leaving the width attribute...
authorZach Copley <zach@status.net>
Thu, 17 Jun 2010 01:27:51 +0000 (18:27 -0700)
committerZach Copley <zach@status.net>
Thu, 17 Jun 2010 01:27:51 +0000 (18:27 -0700)
lib/avatarlink.php

index e67799e2ebee46f454fa67d7efd8bfe0c61b0d50..7d4256d6e10ab4979e741e274c9ac3ef4827d66b 100644 (file)
@@ -76,8 +76,8 @@ class AvatarLink
         $alink = new AvatarLink();
         $alink->url    = $filename;
         $alink->height = $size;
+        $alink->width  = $size;
         if (!empty($filename)) {
-            $alink->width  = $size;
             $alink->type   = self::mediatype($filename);
         } else {
             $alink->url    = User_group::defaultLogo($size);