to much copy paste

This commit is contained in:
Robin Appelman 2015-07-17 14:41:16 +02:00
parent 9925ff33f1
commit 884e2fcd6e
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}
}