X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FAvatar.php;h=8d6424e8b2d1f53c5ccec912404ccde6ee7b26d9;hb=b0527801d9c2b84408bbfdf82bbdc5b778f72cfc;hp=64f105179c85c24358c9e83f19dcdce6e9676a00;hpb=4e639b8769f42e700b9ad3abe5564ddb0178501c;p=quix0rs-gnu-social.git diff --git a/classes/Avatar.php b/classes/Avatar.php index 64f105179c..8d6424e8b2 100644 --- a/classes/Avatar.php +++ b/classes/Avatar.php @@ -81,7 +81,7 @@ class Avatar extends Memcached_DataObject if (empty($server)) { $server = common_config('site', 'server'); } - common_debug('path = ' . $path); + // XXX: protocol return 'http://'.$server.$path.$filename; @@ -102,6 +102,6 @@ class Avatar extends Memcached_DataObject static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile', AVATAR_STREAM_SIZE => 'stream', AVATAR_MINI_SIZE => 'mini'); - return theme_path('default-avatar-'.$sizenames[$size].'.png'); + return Theme::path('default-avatar-'.$sizenames[$size].'.png'); } }