mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Fix issue processwire/processwire-issues#1155
This commit is contained in:
@@ -138,7 +138,7 @@ class FieldtypeImage extends FieldtypeFile {
|
|||||||
|
|
||||||
$item['width'] = (int) $info['width'];
|
$item['width'] = (int) $info['width'];
|
||||||
$item['height'] = (int) $info['height'];
|
$item['height'] = (int) $info['height'];
|
||||||
$item['ratio'] = $pagefile->ratio;
|
$item['ratio'] = number_format($pagefile->ratio, 2, '.', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
|
Reference in New Issue
Block a user