From 702b0cdc185bd537c7259d3c690f18b97b2e637a Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 21 Mar 2014 14:19:24 +0100 Subject: [PATCH] Revert fix to please Scrutinizer --- lib/utils/temporaryphoto.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/utils/temporaryphoto.php b/lib/utils/temporaryphoto.php index c7c39bf2..a028ba08 100644 --- a/lib/utils/temporaryphoto.php +++ b/lib/utils/temporaryphoto.php @@ -22,8 +22,6 @@ namespace OCA\Contacts\Utils; -use OCP\Image; - /** * This class is used for getting a temporary contact photo for cropping. */ @@ -131,7 +129,7 @@ class TemporaryPhoto { * @return bool */ public function isValid() { - return (($this->image instanceof Image) && $this->image->valid()); + return (($this->image instanceof \OCP\Image) && $this->image->valid()); } /** @@ -164,7 +162,7 @@ class TemporaryPhoto { return; } - if (!$this->image instanceof Image) { + if (!$this->image instanceof \OCP\Image) { $this->processImage(); } $this->normalizePhoto();