summaryrefslogtreecommitdiffstats
path: root/core/Controller/AvatarController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/AvatarController.php')
-rw-r--r--core/Controller/AvatarController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index e75b3493185..2ef219af498 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -201,7 +201,7 @@ class AvatarController extends Controller {
}
try {
- $image = new \OC_Image();
+ $image = new \OCP\Image();
$image->loadFromData($content);
$image->readExif($content);
$image->fixOrientation();
@@ -260,7 +260,7 @@ class AvatarController extends Controller {
Http::STATUS_NOT_FOUND);
}
- $image = new \OC_Image();
+ $image = new \OCP\Image();
$image->loadFromData($tmpAvatar);
$resp = new DataDisplayResponse(
@@ -296,7 +296,7 @@ class AvatarController extends Controller {
Http::STATUS_BAD_REQUEST);
}
- $image = new \OC_Image();
+ $image = new \OCP\Image();
$image->loadFromData($tmpAvatar);
$image->crop($crop['x'], $crop['y'], (int)round($crop['w']), (int)round($crop['h']));
try {