Project

General

Profile

Bug #17562 » patch_6215_v2.diff

Administrator Admin, 2009-05-29 23:34

View differences:

typo3/sysext/cms/tslib/class.tslib_menu.php (working copy)
}
}
$GLOBALS['TSFE']->imagesOnPage[]=$imgInfo[3];
$res='<img src="'.$GLOBALS['TSFE']->absRefPrefix.$imgInfo[3].'" width="'.$imgInfo[0].'" height="'.$imgInfo[1].'"'.$name.($this->I['val'][$pref.'ImgTagParams']?" ".$this->I['val'][$pref.'ImgTagParams']:'').tslib_cObj::getBorderAttr('border="0"');
$res='<img src="'.$GLOBALS['TSFE']->absRefPrefix.$imgInfo[3].'" width="'.$imgInfo[0].'" height="'.$imgInfo[1].'" '.$name.' '.($this->I['val'][$pref.'ImgTagParams']?" ".$this->I['val'][$pref.'ImgTagParams']:'').tslib_cObj::getBorderAttr('border="0"');
if (!strstr($res,'alt="')) $res.=' alt=""'; // Adding alt attribute if not set.
$res.=' />';
if ($this->I['val'][$pref.'ImgLink']) {$res=$this->I['A1'].$res.$this->I['A2'];}
(3-3/4)