Skip to content

Commit

Permalink
Merge 4.x into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Aug 4, 2023
2 parents bcf1741 + d2a8460 commit 739dd6e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Route/RoutePageGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ public function update(SiteInterface $site, ?OutputInterface $output = null, boo
if (
!$this->decoratorStrategy->isRouteNameDecorable($name)
|| !$this->decoratorStrategy->isRouteUriDecorable($route->getPath())
|| (null !== $routeHostRegex
&& 0 === preg_match($routeHostRegex, $site->getHost() ?? ''))
|| (
null !== $routeHostRegex
&& '' !== $routeHostRegex
&& 0 === preg_match($routeHostRegex, $site->getHost() ?? '')
)
) {
if (null !== $page) {
$page->setEnabled(false);
Expand Down

0 comments on commit 739dd6e

Please sign in to comment.