Index: typo3/sysext/cms/tslib/class.tslib_menu.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_menu.php (revision 10317) +++ typo3/sysext/cms/tslib/class.tslib_menu.php (revision ) @@ -1927,11 +1927,15 @@ $res=$this->I['A1'].$res.$this->I['A2']; } } - $pref = isset($this->I['val'][$pref.'.']) + $processedPref = isset($this->I['val'][$pref.'.']) ? $this->WMcObj->stdWrap($this->I['val'][$pref], $this->I['val'][$pref.'.']) : $this->I['val'][$pref]; - return $this->tmpl->wrap($res.$pref, $this->I['val'][$pref.'Wrap']); + if(isset($this->I['val'][$pref.'Wrap'])) { + return $this->tmpl->wrap($res.$processedPref, $this->I['val'][$pref.'Wrap']); + } else { + return $res.$processedPref; - } + } + } /** * Adds a JavaScript function to the $GLOBALS['TSFE']->additionalJavaScript array