Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-07-17 15:41:16 +0300
committerRobin Appelman <icewind@owncloud.com>2015-10-01 14:14:47 +0300
commit884e2fcd6ecd9a402619fced47b8b5c9a63a85dd (patch)
treec517b8010bd290cb46e013e3d719a477bc621165 /lib/private/preview.php
parent9925ff33f10bbece12816c0638756eb0e6ddbe92 (diff)
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;
}
}