Skip to content

Commit

Permalink
fix sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
michb committed Jun 19, 2024
1 parent 949bd3e commit f15d022
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Page/GonePageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct( ContaoFramework $framework ) {
}


public function __invoke( PageModel $pageModel): Response {
public function __invoke( PageModel $pageModel ): Response {

$this->framework->initialize();

Expand Down
8 changes: 4 additions & 4 deletions src/Routing/Route410Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Route410Provider extends AbstractPageRouteProvider {

public function getRoutesByNames( ?array $names=null ): array {

$this->getRoutesByNamesForContao5($names);
return $this->getRoutesByNamesForContao5($names);
}
}

Expand All @@ -55,7 +55,7 @@ public function getRoutesByNames( $names ): array {
return [];
}

$this->getRoutesByNamesForContao5($names);
return $this->getRoutesByNamesForContao5($names);
}
}
}
Expand Down Expand Up @@ -126,7 +126,7 @@ public function getRouteByName( $name ): Route {

$routes = [];

$this->addNotFoundRoutesForPage($page, $routes);
$this->addGoneRoutesForPage($page, $routes);
$this->addLocaleRedirectRoute($this->pageRegistry->getRoute($page), null, $routes);

if( !array_key_exists($name, $routes) ) {
Expand Down Expand Up @@ -163,7 +163,7 @@ public function getRoutesByNamesForContao5( ?array $names=null ): array {
$routes = [];

foreach ($pages as $page) {
$this->addNotFoundRoutesForPage($page, $routes);
$this->addGoneRoutesForPage($page, $routes);
$this->addLocaleRedirectRoute($this->pageRegistry->getRoute($page), null, $routes);
}

Expand Down

0 comments on commit f15d022

Please sign in to comment.