From 884e2fcd6ecd9a402619fced47b8b5c9a63a85dd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 17 Jul 2015 14:41:16 +0200 Subject: to much copy paste --- lib/private/preview.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/private/preview.php') diff --git a/lib/private/preview.php b/lib/private/preview.php index dabb274323f..41fc29e045f 100644 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -536,11 +536,9 @@ class Preview { foreach ($allThumbnails as $thumbnail) { $name = $thumbnail['name']; - if (strpos($name, 'max')) { - list($cachedWidth, $cachedHeight) = $this->getDimensionsFromFilename($name); - if ($cachedWidth === $width && $cachedHeight === $height) { - return true; - } + list($cachedWidth, $cachedHeight) = $this->getDimensionsFromFilename($name); + if ($cachedWidth === $width && $cachedHeight === $height) { + return true; } } -- cgit v1.2.3