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:
@@ -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
|
||||
*
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user