summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/TXT.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/TXT.php')
-rw-r--r--lib/private/Preview/TXT.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Preview/TXT.php b/lib/private/Preview/TXT.php
index a4b7ec769c0..88c6e87f38e 100644
--- a/lib/private/Preview/TXT.php
+++ b/lib/private/Preview/TXT.php
@@ -91,8 +91,9 @@ class TXT extends Provider {
}
}
- $image = new \OC_Image($image);
+ $imageObject = new \OC_Image();
+ $imageObject->setResource($image);
- return $image->valid() ? $image : false;
+ return $imageObject->valid() ? $imageObject : false;
}
}