Fixed feature request 4780: TypoScript - add stdWrap to TMENU/GMENU
authorOliver Hader <oliver.hader@typo3.org>
Wed, 24 Jan 2007 13:07:40 +0000 (13:07 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 24 Jan 2007 13:07:40 +0000 (13:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1935 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_menu.php

index e3c3abd..2671692 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        * Fixed feature request 4790: typolink.addQueryString - enable usage of merged POST and GET data
        * Fixed bug 4824: typo3 not defined in jsfunc.tbe_editor.js
        * Fixed bug 4809: require() in class.t3lib_tceforms_inline.php fails
+       * Fixed feature request 4780: TypoScript - add stdWrap to TMENU/GMENU
 
 2007-01-23  Ingmar Schlecht  <ingmar@typo3.org>
 
index e8c8f1d..2f9c6a8 100755 (executable)
@@ -1818,6 +1818,10 @@ class tslib_tmenu extends tslib_menu {
         * @see writeMenu(), tslib_tmenu_layers::extProc_finish()
         */
        function extProc_finish()       {
+                       // stdWrap:
+               if (is_array($this->mconf['stdWrap.'])) {
+                       $this->WMresult = $this->WMcObj->stdWrap($this->WMresult,$this->mconf['stdWrap.']);
+               }
                return $this->tmpl->wrap($this->WMresult,$this->mconf['wrap']).$this->WMextraScript;
        }
 }
@@ -2363,6 +2367,10 @@ class tslib_gmenu extends tslib_menu {
         * @see writeMenu(), tslib_gmenu_layers::extProc_finish()
         */
        function extProc_finish()       {
+                       // stdWrap:
+               if (is_array($this->mconf['stdWrap.'])) {
+                       $this->WMresult = $this->WMcObj->stdWrap($this->WMresult,$this->mconf['stdWrap.']);
+               }
                return $this->tmpl->wrap($this->WMresult,$this->mconf['wrap']).$this->WMextraScript;
        }
 }