Skip to content
Snippets Groups Projects
Commit 4908a9cb authored by Johannes Kreiner's avatar Johannes Kreiner
Browse files

[TASK] Update PictureViewHelper

parent ef78e50e
No related branches found
No related tags found
No related merge requests found
......@@ -313,6 +313,14 @@ class PictureViewHelper extends AbstractViewHelper {
if (!$title) {
$title = $image->hasProperty('title') ? $image->getTitle() : '';
}
} else {
if (!$alt) {
$alternative = $originalFile->getProperties()['alternative'] ?? '';
}
if (!$title) {
$title = $originalFile->getProperties()['title'] ?? '';
}
}
$titleAsAttribute = $title ? ' title="' . htmlspecialchars($title) . '"' : '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment