mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed incorrect config lookup for loading in ImageLoadingTrait [#3192]
This commit is contained in:
parent
2c866f3c10
commit
21c6b56a27
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user