Skip to content

Commit

Permalink
index of webspaceManager->getPortalInformations() did not match with …
Browse files Browse the repository at this point in the history
…{host} notation from webspaces.xml
  • Loading branch information
Manuel Bertrams committed Feb 1, 2024
1 parent 99e040a commit 3c706a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sitemap/NewsSitemapProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ public function getMaxPage($scheme, $host): ?float
private function getLocaleByHost($host) {
if(!\array_key_exists($host, $this->locales)) {
$portalInformation = $this->webspaceManager->getPortalInformations();

foreach ($portalInformation as $hostName => $portal) {
if($hostName === $host) {
if($hostName === $host || $portal->getHost() === $host) {
$this->locales[$host] = $portal->getLocale();
}
}
Expand Down

0 comments on commit 3c706a8

Please sign in to comment.