Skip to content

Commit

Permalink
Merge pull request #4 from sandewt/patch-1
Browse files Browse the repository at this point in the history
Update imagelazyloading.php
  • Loading branch information
zero-24 authored Sep 11, 2024
2 parents ff6de7c + 15d1c99 commit 944cb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagelazyloading.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function onContentPrepare($context, &$row, &$params, $page = 0)
}

// Check and add the loading attribute for images
if ($this->params->get('enabled_image', false) && preg_match_all('/<img\s[^>]+>/', $row->text, $imgMatches))
if ($this->params->get('enabled_image', true) && preg_match_all('/<img\s[^>]+>/', $row->text, $imgMatches))
{
foreach ($imgMatches[0] as $image)
{
Expand Down

0 comments on commit 944cb31

Please sign in to comment.