mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 12:17:42 +02:00
Update Image.php
This commit is contained in:
@@ -173,8 +173,8 @@ class Image
|
|||||||
public function resize($width, $height = null, $aspect_ratio = null)
|
public function resize($width, $height = null, $aspect_ratio = null)
|
||||||
{
|
{
|
||||||
// Redefine vars
|
// Redefine vars
|
||||||
$width = (int) $width;
|
$width = (int) $width;
|
||||||
$height = ($height === null) ? null : (int) $height;
|
$height = ($height === null) ? null : (int) $height;
|
||||||
$aspect_ratio = ($aspect_ratio === null) ? null : (int) $aspect_ratio;
|
$aspect_ratio = ($aspect_ratio === null) ? null : (int) $aspect_ratio;
|
||||||
$xpos = $ypos = 0;
|
$xpos = $ypos = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user