mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fix bug
This commit is contained in:
parent
5b5a15b4c6
commit
05731b1069
@ -155,8 +155,8 @@ class ImageResizer
|
||||
public function __construct($image, $width = 0, $height = 0, $options = [])
|
||||
{
|
||||
$this->image = static::normalizeImage($image);
|
||||
$this->width = (int) ($width === 'auto') ? 0 : $width;
|
||||
$this->height = (int) ($height === 'auto') ? 0 : $height;
|
||||
$this->width = (int) (($width === 'auto') ? 0 : $width);
|
||||
$this->height = (int) (($height === 'auto') ? 0 : $height);
|
||||
$this->options = array_merge($this->getDefaultOptions(), $options);
|
||||
}
|
||||
|
||||
@ -761,7 +761,7 @@ class ImageResizer
|
||||
* @throws SystemException If the provided input was unable to be processed
|
||||
* @return string
|
||||
*/
|
||||
public static function getFilterUrl($image, $width = null, $height = null, $options = [])
|
||||
public static function filterGetUrl($image, $width = null, $height = null, $options = [])
|
||||
{
|
||||
// Attempt to process the provided image
|
||||
try {
|
||||
|
@ -118,6 +118,6 @@ class Extension extends TwigExtension
|
||||
*/
|
||||
public function resizeFilter($image, $width = null, $height = null, $options = [])
|
||||
{
|
||||
return ImageResizer::getFilterUrl($image, $width, $height, $options);
|
||||
return ImageResizer::filterGetUrl($image, $width, $height, $options);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user