Browse Source

"Насильное создание варианта" (fix1)

MIRSPORTA-591 Неправильный ресайзинг фото из фотогалереи
master
Alexander Demidov 10 years ago
parent
commit
40bf98cd70
  1. 7
      File.php
  2. 8
      Image.php

7
File.php

@ -76,9 +76,12 @@ abstract class File
}
/**
* @param $size string
* @param $force_create bool
* @param $size
* @param bool $force_create
* @param bool $important_create
*
* @return ImageVariant
* @throws \ErrorException
*/
public function getImageVariant($size, $force_create = false, $important_create = false)
{

8
Image.php

@ -77,11 +77,13 @@ abstract class Image extends File
/**
* @param $size
* @param $force_create
* @param bool $force_create
* @param bool $important_create
*
* @return ImageVariant
*/
public function getVariant($size, $force_create = false)
public function getVariant($size, $force_create = false, $important_create = false)
{
return parent::getImageVariant($size, $force_create);
return parent::getImageVariant($size, $force_create, $important_create);
}
}
Loading…
Cancel
Save