[!!!][TASK] Remove CMS base ViewHelper classes
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / Be / Menus / ActionMenuItemViewHelper.php
index 715c495..327e004 100644 (file)
@@ -76,10 +76,10 @@ class ActionMenuItemViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\Abstract
         $action = $this->arguments['action'];
         $arguments = $this->arguments['arguments'];
 
-        $uriBuilder = $this->controllerContext->getUriBuilder();
+        $uriBuilder = $this->renderingContext->getControllerContext()->getUriBuilder();
         $uri = $uriBuilder->reset()->uriFor($action, $arguments, $controller);
         $this->tag->addAttribute('value', $uri);
-        $currentRequest = $this->controllerContext->getRequest();
+        $currentRequest = $this->renderingContext->getControllerContext()->getRequest();
         $currentController = $currentRequest->getControllerName();
         $currentAction = $currentRequest->getControllerActionName();
         if ($action === $currentAction && $controller === $currentController) {