1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00

Various minor adjustments, code plus improvements to ProcessSessionDB module

This commit is contained in:
Ryan Cramer
2020-03-06 13:45:36 -05:00
parent f584ec5317
commit 765f42a4dc
4 changed files with 33 additions and 68 deletions

View File

@@ -4133,7 +4133,7 @@ class Modules extends WireArray {
}
/**
* Is the given namespace a unique recognized module namespace? If yes, returns the path to it. If not, returns boolean false;
* Is the given namespace a unique recognized module namespace? If yes, returns the path to it. If not, returns boolean false.
*
* #pw-internal
*

View File

@@ -955,15 +955,19 @@ class Pageimage extends Pagefile {
*
* #pw-internal
*
* @param $width
* @param $height
* @param int|string $width
* @param int|array $height
* @param array $options See options in size() method.
* @return Pageimage
*
*/
public function hidpiSize($width, $height, $options = array()) {
$options['hidpi'] = true;
return $this->size($width, $height, $options);
if(is_array($height)) {
$height['hidpi'] = true;
} else {
$options['hidpi'] = true;
}
return $this->size($width, $height, $options);
}
/**