+2011-02-04 Francois Suter <francois.suter@typo3.org>
+
+ * Fixed bug #17360: beforeWrap/afterWrap properties of TMENUITEM not working anymore (Thanks to Jo Hasenau)
+
2011-02-03 Steffen Kamper <steffen@typo3.org>
* Fixed bug #17407: Pagetree cause endless loop in ExtJS events
$res=$this->I['A1'].$res.$this->I['A2'];
}
}
- $pref = isset($this->I['val'][$pref.'.'])
- ? $this->WMcObj->stdWrap($this->I['val'][$pref], $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;
+ }
}
/**