mirror of
https://github.com/getgrav/grav.git
synced 2026-07-04 15:37:26 +02:00
Fixed incorrect config lookup for loading in ImageLoadingTrait [#3192]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user