From f9337d77a5fc9ae0cdd9486261768b102347bfd0 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Wed, 15 Apr 2020 16:40:12 -0400 Subject: [PATCH] Minor adjustments in Pageimage and Pagefile classes --- wire/core/Pagefile.php | 2 +- wire/core/Pageimage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/core/Pagefile.php b/wire/core/Pagefile.php index 30d3f482..91d9a524 100644 --- a/wire/core/Pagefile.php +++ b/wire/core/Pagefile.php @@ -368,7 +368,7 @@ class Pagefile extends WireData { * - To unset, specify boolean false (or null) for $key, and the name of the property to unset as $value. * - To unset, you can also get all values, unset it from the retuned array, and set the array back. * - * #pw-internal + * #pw-group-manipulation * * @param string|array|false|null $key Specify array to set all file data, or key (string) to set or get a property, * Or specify boolean false to remove key specified by $value argument. diff --git a/wire/core/Pageimage.php b/wire/core/Pageimage.php index 3c99d507..6ffe312a 100644 --- a/wire/core/Pageimage.php +++ b/wire/core/Pageimage.php @@ -977,7 +977,7 @@ class Pageimage extends Pagefile { * @return Pageimage * */ - public function hidpiSize($width, $height, $options = array()) { + public function hidpiSize($width, $height = 0, $options = array()) { if(is_array($height)) { $height['hidpi'] = true; } else {