From 21c6b56a27f489a3a307bec078ecfa849cc62fa0 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 1 Feb 2021 18:11:01 +0200 Subject: [PATCH] Fixed incorrect config lookup for loading in `ImageLoadingTrait` [#3192] --- CHANGELOG.md | 1 + system/src/Grav/Common/Media/Traits/ImageLoadingTrait.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b19693fd..34a80cab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ * Fixed page redirect to the first visible child page (needs to be routable and published, too) * Fixed untranslated module pages showing up in the menu * Fixed page save failing because of uploaded images [#3191](https://github.com/getgrav/grav/issues/3191) + * Fixed incorrect config lookup for loading in `ImageLoadingTrait` [#3192](https://github.com/getgrav/grav/issues/3192) # v1.7.3 ## 01/21/2021 diff --git a/system/src/Grav/Common/Media/Traits/ImageLoadingTrait.php b/system/src/Grav/Common/Media/Traits/ImageLoadingTrait.php index 055583941..344df7e8f 100644 --- a/system/src/Grav/Common/Media/Traits/ImageLoadingTrait.php +++ b/system/src/Grav/Common/Media/Traits/ImageLoadingTrait.php @@ -26,7 +26,7 @@ trait ImageLoadingTrait public function loading($value = null) { if (null === $value) { - $value = Grav::instance()['config']->get('images.defaults.loading', 'auto'); + $value = Grav::instance()['config']->get('system.images.defaults.loading', 'auto'); } if ($value && $value !== 'auto') { $this->attributes['loading'] = $value;