Fix Markdown image attr. 'loading'

This commit is contained in:
pamtbaau
2021-03-01 07:17:01 +01:00
committed by Matias Griese
parent 3b6f5353fd
commit 7cbd067daf

View File

@@ -278,10 +278,10 @@ class Excerpts
);
}
$defaults = $config['images']['defaults'] ?? [];
$defaults = $this->config['images']['defaults'] ?? [];
if (count($defaults)) {
foreach ($defaults as $method => $params) {
if (!array_search($method, array_column($actions, 'method'))) {
if (array_search($method, array_column($actions, 'method')) === false) {
$actions[] = [
'method' => $method,
'params' => $params,