Skip to content

Commit

Permalink
Restore Contao 4.13 compatibility
Browse files Browse the repository at this point in the history
The method isBackendScope() was introduced in Contao 5 only. Use Scope matcher directly
  • Loading branch information
dmolineus committed Mar 14, 2024
1 parent 09959d4 commit 1bae413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ContentElement/ContentNavigationElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
/** @SuppressWarnings(PHPMD.Superglobals) */
protected function getResponse(Template $template, ContentModel $model, Request $request): Response
{
if ($this->isBackendScope($request)) {
if (! $this->container->get('contao.routing.scope_matcher')->isBackendRequest($request)) {
return $this->getBackendView($model, $template);
}

Expand Down

0 comments on commit 1bae413

Please sign in to comment.