diff --git a/Neos.Neos/Classes/View/FusionExceptionView.php b/Neos.Neos/Classes/View/FusionExceptionView.php index 23b006cca8a..a3bfc66d2c7 100644 --- a/Neos.Neos/Classes/View/FusionExceptionView.php +++ b/Neos.Neos/Classes/View/FusionExceptionView.php @@ -163,8 +163,7 @@ public function render() [ 'node' => $currentSiteNode, 'documentNode' => $currentSiteNode, - 'site' => $currentSiteNode, - 'editPreviewMode' => null + 'site' => $currentSiteNode ] )); diff --git a/Neos.Neos/Classes/View/FusionView.php b/Neos.Neos/Classes/View/FusionView.php index 7cf490e96f5..6ff365b5127 100644 --- a/Neos.Neos/Classes/View/FusionView.php +++ b/Neos.Neos/Classes/View/FusionView.php @@ -77,8 +77,7 @@ public function render(): string|ResponseInterface $fusionRuntime->pushContextArray([ 'node' => $currentNode, 'documentNode' => $this->getClosestDocumentNode($currentNode) ?: $currentNode, - 'site' => $currentSiteNode, - 'editPreviewMode' => $this->variables['editPreviewMode'] ?? null + 'site' => $currentSiteNode ]); try { $output = $fusionRuntime->render($this->fusionPath);