From a112e7f9a4dde566668a409a74faf723e66e5210 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 1 Mar 2016 15:00:52 +0100 Subject: [PATCH] Use another method of detecting unspecified defaultImage size --- classes/Avatar.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'); -- 2.39.5