summaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-13 10:10:11 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-16 12:45:15 +0100
commit8ed27d2ce0477f40a27cdc335361b0d5654a7e09 (patch)
treede2db82b384ab3071c2c17b8e84dd560b9df993c /core/avatar
parent3b7aec1b7d4e2e3a1ff6c1f7888189c67aa09b75 (diff)
downloadnextcloud-server-8ed27d2ce0477f40a27cdc335361b0d5654a7e09.tar.gz
nextcloud-server-8ed27d2ce0477f40a27cdc335361b0d5654a7e09.zip
Create an interface for OC_Image and OCP\Image for the public API
Diffstat (limited to 'core/avatar')
-rw-r--r--core/avatar/avatarcontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/avatar/avatarcontroller.php b/core/avatar/avatarcontroller.php
index f63e02b7761..b63c8ad53b5 100644
--- a/core/avatar/avatarcontroller.php
+++ b/core/avatar/avatarcontroller.php
@@ -95,7 +95,7 @@ class AvatarController extends Controller {
$avatar = $this->avatarManager->getAvatar($userId);
$image = $avatar->get($size);
- if ($image instanceof \OC_Image) {
+ if ($image instanceof \OCP\IImage) {
$resp = new DataDisplayResponse($image->data(),
Http::STATUS_OK,
['Content-Type' => $image->mimeType()]);