From: Mikael Nordfeldth Date: Tue, 1 Mar 2016 14:00:52 +0000 (+0100) Subject: Use another method of detecting unspecified defaultImage size X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a112e7f9a4dde566668a409a74faf723e66e5210;p=quix0rs-gnu-social.git Use another method of detecting unspecified defaultImage size --- diff --git a/classes/Avatar.php b/classes/Avatar.php index 62885f402b..516abafe25 100644 --- a/classes/Avatar.php +++ b/classes/Avatar.php @@ -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');