Browse Source

Фикс ошибки, установка по-умолчанию $important_create = null

master
Alexander Demidov 7 years ago
parent
commit
e68bf35fa7
  1. 4
      Image.php

4
Image.php

@ -82,9 +82,9 @@ abstract class Image extends File
*
* @return ImageVariant
*/
public function getVariant($size, $force_create = false, $important_create = false)
public function getVariant($size, $force_create = false, $important_create = null)
{
if ($force_create && !$important_create && is_array($this->variants) && array_key_exists($size, $this->variants) && $this->variants[$size]['size'] === null) {
if ($force_create && $important_create === null && is_array($this->variants) && array_key_exists($size, $this->variants) && $this->variants[$size]['size'] === null) {
$important_create = true;
}

Loading…
Cancel
Save