diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-06-02 00:37:36 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-06-02 00:37:36 +0000 |
commit | 57c66bf7cb772d5d6d7a17f10cd90adf48884b2d (patch) | |
tree | 1043929d764925819b9e4befe499a9ea3607ae7e /core/Controller/AvatarController.php | |
parent | 4e5ed32025398e006f40e819428270d209994e03 (diff) | |
download | nextcloud-server-57c66bf7cb772d5d6d7a17f10cd90adf48884b2d.tar.gz nextcloud-server-57c66bf7cb772d5d6d7a17f10cd90adf48884b2d.zip |
Use Image class from public API
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/Controller/AvatarController.php')
-rw-r--r-- | core/Controller/AvatarController.php | 6 |
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 { |