[BUGFIX] Make levelAs of DirectoryViewHelper work 57/45957/3
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 15 Jan 2016 16:34:07 +0000 (17:34 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 16 Jan 2016 12:54:27 +0000 (13:54 +0100)
To calculate the level, the correct variable needs to be used.

Change-Id: Ic53b4475412d4b29c408af95371ef2416603d1f1
Resolves: #72543
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/45957
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/DirectoryViewHelper.php

index 079e0f8..da8bd23 100644 (file)
@@ -97,7 +97,7 @@ class DirectoryViewHelper extends AbstractViewHelper
                 $as => $pages
             );
             if (!empty($levelAs)) {
-                $variables[$levelAs] = $typoScriptFrontendController->register['ceMenuLevel'];
+                $variables[$levelAs] = $typoScriptFrontendController->register['ceMenuLevel_directory'];
             }
             $output = $this->renderChildrenWithVariables($variables);