Skip to content

Commit 55b7d50

Browse files
authored
Remove alt text handling entirely and rely on core to generate alt text for images in exhibits
(fix #132)
1 parent 153a4ed commit 55b7d50

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

views/helpers/ExhibitAttachment.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ public function exhibitAttachment($attachment, $fileOptions = array(), $linkProp
2323
$file = $attachment->getFile();
2424

2525
if ($file) {
26-
if (!isset($fileOptions['imgAttributes']['alt'])) {
27-
$fileOptions['imgAttributes']['alt'] = metadata($item, array('Dublin Core', 'Title'), array('no_escape' => true));
28-
}
29-
3026
if ($forceImage) {
3127
$imageSize = isset($fileOptions['imageSize'])
3228
? $fileOptions['imageSize']

0 commit comments

Comments
 (0)