Browse Source

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

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

13
File.php

@ -75,11 +75,14 @@ abstract class File
return $instance;
}
/**
* @param $size string
* @param $force_create bool
* @return ImageVariant
*/
/**
* @param $size
* @param bool $force_create
* @param bool $important_create
*
* @return ImageVariant
* @throws \ErrorException
*/
public function getImageVariant($size, $force_create = false, $important_create = false)
{
/**

16
Image.php

@ -75,13 +75,15 @@ abstract class Image extends File
return static::$max_height;
}
/**
* @param $size
* @param $force_create
* @return ImageVariant
*/
public function getVariant($size, $force_create = false)
/**
* @param $size
* @param bool $force_create
* @param bool $important_create
*
* @return ImageVariant
*/
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