From 8ed27d2ce0477f40a27cdc335361b0d5654a7e09 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 13 Mar 2015 10:10:11 +0100 Subject: Create an interface for OC_Image and OCP\Image for the public API --- core/avatar/avatarcontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/avatar') 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()]); -- cgit v1.2.3