Fixed bug #14143: count_menuItems not working correctly
authorFrancois Suter <francois.suter@typo3.org>
Sun, 29 Aug 2010 19:17:02 +0000 (19:17 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Sun, 29 Aug 2010 19:17:02 +0000 (19:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4@8732 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 9812503..81bba0b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-29  Francois Suter  <francois@typo3.org>
+
+       * Fixed bug #14143: count_menuItems not working correctly (thanks to Frederic Gaus)
+
 2010-08-29  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #15525: Caching framework database backend does not free mysql resource in collectGarbage() (Thanks to Helmut Hummel)
index 444ca22..5bb1aea 100644 (file)
@@ -1375,7 +1375,9 @@ class tslib_menu {
 
                        if ($submenu->start($this->tmpl, $this->sys_page, $uid, $this->conf, $this->menuNumber+1, $objSuffix))  {
                                $submenu->makeMenu();
-                               return $submenu->writeMenu();
+                               $content = $submenu->writeMenu();
+                               $GLOBALS['TSFE']->register['count_menuItems'] = count($this->menuArr);
+                               return $content;
                        }
                }
        }