Simply: yes

-------- Ursprüngliche Nachricht --------
Von: Christopher <notifications@github.com> 
Datum:  
An: owncloud/core <core@noreply.github.com> 
Cc: Thomas Müller <thomas.mueller@tmit.eu> 
Betreff: Re: [core] OC Avatars (#4506) 
 
In lib/avatar.php:

> + */
> +
> +/**
> + * This class gets and sets users avatars.
> + * Available backends are local (saved in users root at avatar.[png|jpg]), gravatar TODO and custom backends.
> + * However the get function is easy to extend with further backends.
> +*/
> +
> +class OC_Avatar {
> +	/**
> +	 * @brief gets the users avatar
> +	 * @param $user string username, if not provided, the default avatar will be returned
> +	 * @param $size integer size in px of the avatar, defaults to 64
> +	 * @return mixed \OC_Image containing the avatar, a link to the avatar, false if avatars are disabled
> +	*/
> +	public static function get ($user = false, $size = 64) {
What to do instead? Constructing a new OC_Avatar everytime wouldn't be that great IMO.

—
Reply to this email directly or view it on GitHub.