Skip to content

Commit

Permalink
Merge pull request neos#1403 from Sebobo/3.0
Browse files Browse the repository at this point in the history
TASK: Don’t use deprecated hostpattern methods
  • Loading branch information
robertlemke authored Jan 27, 2017
2 parents 83c2a59 + 423223a commit 537470b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Neos.Neos/Classes/Controller/Backend/MenuHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function buildSiteList(ControllerContext $controllerContext)
/** @var $site Site */
if ($site->hasActiveDomains()) {
$activeHostPatterns = $site->getActiveDomains()->map(function ($domain) {
return $domain->getHostPattern();
return $domain->getHostname();
})->toArray();
$active = in_array($requestUriHost, $activeHostPatterns, true);
if ($active) {
Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Classes/Service/LinkingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function createNodeUri(ControllerContext $controllerContext, $node = null
if ($site->hasActiveDomains()) {
$requestUriHost = $request->getHttpRequest()->getBaseUri()->getHost();
$activeHostPatterns = $site->getActiveDomains()->map(function ($domain) {
return $domain->getHostPattern();
return $domain->getHostname();
})->toArray();
if (!in_array($requestUriHost, $activeHostPatterns, true)) {
$uri = $this->createSiteUri($controllerContext, $site) . '/' . ltrim($uri, '/');
Expand Down

0 comments on commit 537470b

Please sign in to comment.