OC_Helper::userAvatarSet is not used anymore
This commit is contained in:
parent
a18c0983d5
commit
4af7bf07bf
|
@ -164,16 +164,6 @@ class OC_Helper {
|
|||
return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]);
|
||||
}
|
||||
|
||||
/**
|
||||
* shows whether the user has an avatar
|
||||
* @param string $user username
|
||||
* @return bool avatar set or not
|
||||
* @deprecated 9.0.0 Use \OC::$server->getAvatarManager()->getAvatar($user)->exists();
|
||||
**/
|
||||
public static function userAvatarSet($user) {
|
||||
return \OC::$server->getAvatarManager()->getAvatar($user)->exists();
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a human file size
|
||||
* @param int $bytes file size in bytes
|
||||
|
|
Loading…
Reference in New Issue