Fix name conflict

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2016-10-16 15:47:30 +02:00
parent d6f1287ae6
commit 8468212386
No known key found for this signature in database
GPG key ID: 1E152838F164D13B

View file

@ -32,7 +32,7 @@ use OCP\Files\SimpleFS\ISimpleFile;
use OCP\Files\SimpleFS\ISimpleFolder;
use OCP\IConfig;
use OCP\IImage;
use OCP\Image;
use OCP\Image as img;
use OCP\IPreview;
use OCP\Preview\IProvider;
@ -297,13 +297,13 @@ class Generator {
* @param int $width
* @param int $height
* @param bool $crop
* @param int $maxWidth,
* @param int $maxWidth
* @param int $maxHeight
* @return ISimpleFile
* @throws NotFoundException
*/
private function generatePreview(ISimpleFolder $previewFolder, ISimpleFile $maxPreview, $width, $height, $crop, $maxWidth, $maxHeight) {
$preview = new Image($maxPreview->getContent());
$preview = new img($maxPreview->getContent());
if ($crop) {
if ($height !== $preview->height() && $width !== $preview->width()) {