1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 16:54:44 +02:00

Minor adjustments in Pageimage and Pagefile classes

This commit is contained in:
Ryan Cramer
2020-04-15 16:40:12 -04:00
parent b44669397a
commit f9337d77a5
2 changed files with 2 additions and 2 deletions

View File

@@ -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, 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. * - 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, * @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. * Or specify boolean false to remove key specified by $value argument.

View File

@@ -977,7 +977,7 @@ class Pageimage extends Pagefile {
* @return Pageimage * @return Pageimage
* *
*/ */
public function hidpiSize($width, $height, $options = array()) { public function hidpiSize($width, $height = 0, $options = array()) {
if(is_array($height)) { if(is_array($height)) {
$height['hidpi'] = true; $height['hidpi'] = true;
} else { } else {