summaryrefslogtreecommitdiffstats
path: root/lib/private/preview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-07-17 14:41:16 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-01 13:14:47 +0200
commit884e2fcd6ecd9a402619fced47b8b5c9a63a85dd (patch)
treec517b8010bd290cb46e013e3d719a477bc621165 /lib/private/preview.php
parent9925ff33f10bbece12816c0638756eb0e6ddbe92 (diff)
downloadnextcloud-server-884e2fcd6ecd9a402619fced47b8b5c9a63a85dd.tar.gz
nextcloud-server-884e2fcd6ecd9a402619fced47b8b5c9a63a85dd.zip
to much copy paste
Diffstat (limited to 'lib/private/preview.php')
-rw-r--r--lib/private/preview.php8
1 files changed, 3 insertions, 5 deletions
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;
}
}