summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-01 22:08:42 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-01 22:15:43 +0100
commitb00db2c9334874c6062a143de2a6b76b44dca35d (patch)
treedb13d5d23114468e978786cc52031dc31c312584 /lib/private/helper.php
parent8931ba4a0d574a05cf4415f2556bdd3ee0388ba9 (diff)
downloadnextcloud-server-b00db2c9334874c6062a143de2a6b76b44dca35d.tar.gz
nextcloud-server-b00db2c9334874c6062a143de2a6b76b44dca35d.zip
DI in avatar code
* DI in avatar code * Use the node API * More unit tests * Unit tests no longer require DB
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index fb8e38cc26e..3cad77e6667 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -196,10 +196,10 @@ class OC_Helper {
* 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) {
- $avatar = new \OC\Avatar($user);
- return $avatar->exists();
+ return \OC::$server->getAvatarManager()->getAvatar($user)->exists();
}
/**