Fixed incorrect config lookup for loading in ImageLoadingTrait [#3192]

This commit is contained in:
Matias Griese 2021-02-01 18:11:01 +02:00
parent 2c866f3c10
commit 21c6b56a27
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;