From 3c706a8895302c8e9ae19288e0a9f933d426780c Mon Sep 17 00:00:00 2001 From: Manuel Bertrams Date: Thu, 1 Feb 2024 23:09:59 +0100 Subject: [PATCH] index of webspaceManager->getPortalInformations() did not match with {host} notation from webspaces.xml --- src/Sitemap/NewsSitemapProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Sitemap/NewsSitemapProvider.php b/src/Sitemap/NewsSitemapProvider.php index 5b73905..f4c8712 100644 --- a/src/Sitemap/NewsSitemapProvider.php +++ b/src/Sitemap/NewsSitemapProvider.php @@ -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(); } }