Skip to content

Commit

Permalink
BUGFIX: Respect inactive domains with getActiveDomains
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Bruggmann authored and gerhard-boden committed Nov 16, 2017
1 parent 037d77e commit 376bce0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Classes/Service/NodeRedirectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,9 @@ protected function getHostnames(ContentContext $contentContext)
$site = $contentContext->getCurrentSite();
$domains = [];
if ($site !== null) {
foreach ($site->getDomains() as $domain) {
foreach ($site->getActiveDomains() as $domain) {
/** @var Domain $domain */
$domains[] = $domain->getHostname();
if ($domain->getActive()) {
$domains[] = $domain->getHostPattern();
}
$domains[] = $domain->getHostPattern();
}
}
return $domains;
Expand Down

0 comments on commit 376bce0

Please sign in to comment.