Bug #102796 » local_history1.patch
public/typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php → public/typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php (date 1704796031638) | ||
---|---|---|
$this->tag->addAttribute('height', $processedImage->getProperty('height'));
|
||
// The alt-attribute is mandatory to have valid html-code, therefore add it even if it is empty
|
||
if (empty($this->arguments['alt'])) {
|
||
$this->tag->addAttribute('alt', $image->hasProperty('alternative') ? $image->getProperty('alternative') : '');
|
||
}
|
||
$this->tag->addAttribute('alt', $image->hasProperty('alternative') ? $image->getProperty('alternative') : '');
|
||
// Add title-attribute from property if not already set and the property is not an empty string
|
||
$title = (string)($image->hasProperty('title') ? $image->getProperty('title') : '');
|
||
if (empty($this->arguments['title']) && $title !== '') {
|