mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Fix issue processwire/processwire-issues#1311
This commit is contained in:
@@ -682,7 +682,7 @@ class Pageimage extends Pagefile {
|
|||||||
$result = $this->___size($width, $height, $options);
|
$result = $this->___size($width, $height, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($result) {
|
if($result && $result !== $this) {
|
||||||
$options['_width'] = $width;
|
$options['_width'] = $width;
|
||||||
$options['_height'] = $height;
|
$options['_height'] = $height;
|
||||||
$result->set('sizeOptions', $options);
|
$result->set('sizeOptions', $options);
|
||||||
|
Reference in New Issue
Block a user