mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 23:59:27 -04:00
to much copy paste
This commit is contained in:
parent
9925ff33f1
commit
884e2fcd6e
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue