From 9f01172a4b48cb7ad7f0189d9396f99ad0a1ff12 Mon Sep 17 00:00:00 2001 From: horst-n Date: Fri, 26 Apr 2019 18:32:23 +0200 Subject: [PATCH] added 2 aliases beginning with webp, as we also use two new options beginning with webp. Maybe this is better to avoid confusion. webpAdd, webpQuality, webpUrl, webpSrc --- wire/core/Pageimage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wire/core/Pageimage.php b/wire/core/Pageimage.php index 2535f668..65a0d41e 100644 --- a/wire/core/Pageimage.php +++ b/wire/core/Pageimage.php @@ -42,6 +42,8 @@ * @property-read string $src Convenient alias for the 'url' property, unless overridden (since 3.0.125). * @property-read string $urlWebp The url property of an optional WebP-dependency file (since 3.0.132). * @property-read string $srcWebp Convenient alias for the 'urlWebp' property (since 3.0.132). + * @property-read string $webpUrl Convenient alias for the 'urlWebp' property (since 3.0.132). + * @property-read string $webpSrc Convenient alias for the 'urlWebp' property (since 3.0.132). * @property-read bool $hasWebp Does exist an optional WebP-dependency file for this image variation? (since 3.0.132) * * Properties inherited from Pagefile @@ -426,6 +428,8 @@ class Pageimage extends Pagefile { break; case 'urlWebp': case 'srcWebp': + case 'webpUrl': + case 'webpSrc': $value = $this->urlWebp(); break; default: