diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-03 12:52:27 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-11 16:37:42 +0100 |
commit | 1a0f9c375be12502d9b016c6bdb4c898ec765bbd (patch) | |
tree | 6b287f2d71e94740b364d17a5f23424d5f6668aa /lib/private/avatarmanager.php | |
parent | cfaee93552b519b8e017e63fd5a82b1e5c9f951b (diff) | |
download | nextcloud-server-1a0f9c375be12502d9b016c6bdb4c898ec765bbd.tar.gz nextcloud-server-1a0f9c375be12502d9b016c6bdb4c898ec765bbd.zip |
Avatar controller moved to AppFrameWork
* Original avatarcontroller migrated to the appframework
* Added DataDisplayResponse that show data inline in the browser (used
to retrun the image)
* Removed some unneeded code
* Added unit tests for the avatarcontroller
Diffstat (limited to 'lib/private/avatarmanager.php')
-rw-r--r-- | lib/private/avatarmanager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/avatarmanager.php b/lib/private/avatarmanager.php index 6abe87c4f41..8dc20a5240b 100644 --- a/lib/private/avatarmanager.php +++ b/lib/private/avatarmanager.php @@ -8,8 +8,9 @@ namespace OC; use OCP\IAvatarManager; +use OC\Avatar; -/* +/** * This class implements methods to access Avatar functionality */ class AvatarManager implements IAvatarManager { @@ -21,6 +22,6 @@ class AvatarManager implements IAvatarManager { * @return \OCP\IAvatar */ function getAvatar($user) { - return new \OC_Avatar($user); + return new Avatar($user); } } |