Project

General

Profile

Bug #17562 » 6215_03.diff

Administrator Admin, 2009-05-30 01:05

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"');
if (!strstr($res,'alt="')) $res.=' alt=""'; // Adding alt attribute if not set.
$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'];}
if ($this->I['val'][$pref.'ImgLink']) {
$res=$this->I['A1'].$res.$this->I['A2'];
}
}
return $this->tmpl->wrap($res.$this->WMcObj->stdWrap($this->I['val'][$pref],$this->I['val'][$pref.'.']), $this->I['val'][$pref.'Wrap']);
}
(4-4/4)