Index: typo3/sysext/cms/tslib/class.tslib_menu.php
===================================================================
--- typo3/sysext/cms/tslib/class.tslib_menu.php (revision 5514)
+++ typo3/sysext/cms/tslib/class.tslib_menu.php (working copy)
@@ -1841,10 +1841,20 @@
}
}
$GLOBALS['TSFE']->imagesOnPage[]=$imgInfo[3];
- $res='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='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']);
}