to much copy paste
This commit is contained in:
parent
9925ff33f1
commit
884e2fcd6e
|
@ -536,13 +536,11 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue