]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use another method of detecting unspecified defaultImage size
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 1 Mar 2016 14:00:52 +0000 (15:00 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 1 Mar 2016 14:00:52 +0000 (15:00 +0100)
classes/Avatar.php

index 62885f402bcecf9957d3f5636f14f9376f8dc340..516abafe2526f08cca06969b0334e37ce497a1d8 100644 (file)
@@ -207,8 +207,11 @@ class Avatar extends Managed_DataObject
         }
     }
 
-    static function defaultImage($size=AVATAR_PROFILE_SIZE)
+    static function defaultImage($size=null)
     {
+        if (is_null($size)) {
+            $size = AVATAR_PROFILE_SIZE;
+        }
         static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile',
                                   AVATAR_STREAM_SIZE => 'stream',
                                   AVATAR_MINI_SIZE => 'mini');