Bug #78031 ยป DirectoryViewHelper.patch

patch - Cyril Janody, 2016-10-06 22:26

View differences:

typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/DirectoryViewHelper.php (revision )
89 89
                $typoScriptFrontendController->register['ceMenuLevel_directory']++;
90 90
            }
91 91

  
92
            if ($typoScriptFrontendController->register['ceMenuLevel_directory'] > $typoScriptFrontendController->register['ceMenuMaximumLevel_directory']) {
93
                return '';
94
            }
95

  
92
            if ($typoScriptFrontendController->register['ceMenuLevel_directory'] <= $typoScriptFrontendController->register['ceMenuMaximumLevel_directory']) {
96
            $variables = [
97
                $as => $pages
98
            ];
99
            if (!empty($levelAs)) {
100
                $variables[$levelAs] = $typoScriptFrontendController->register['ceMenuLevel_directory'];
101
            }
102
            $output = $this->renderChildrenWithVariables($variables);
93
                $variables = [
94
                    $as => $pages
95
                ];
96
                if (!empty($levelAs)) {
97
                    $variables[$levelAs] = $typoScriptFrontendController->register['ceMenuLevel_directory'];
98
                }
99
                $output = $this->renderChildrenWithVariables($variables);
100
            }
103 101

  
104 102
            $typoScriptFrontendController->register['ceMenuLevel_directory']--;
105 103

  
    (1-1/1)