Skip to content

Commit

Permalink
Fix missing alt attribute if alt text not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Nov 4, 2024
1 parent 39e6e30 commit 8bff1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/helpers/FileMarkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ public function image_tag($record, $attrs, $format)
if (isset($attrs['alt'])) {
$alt = $attrs['alt'];
} else {
$alt = $file->getAltText();
$alt = ($file->getAltText()) ? $file->getAltText() : '';
}
$attrs['alt'] = $alt;

Expand Down

0 comments on commit 8bff1b1

Please sign in to comment.