From: Tim Düsterhus Date: Fri, 27 May 2022 12:03:22 +0000 (+0200) Subject: Return updated data in RoutingCacheBuilder::handleLandingPageWithOverriddenApplication() X-Git-Tag: 6.0.0_Alpha_1~1252 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9e0e45c728a24aa49c00b0d51679ede40ad43df;p=GitHub%2FWoltLab%2FWCF.git Return updated data in RoutingCacheBuilder::handleLandingPageWithOverriddenApplication() see 662b3c73f9cffedca8c9c88397313f4aec243a77 --- diff --git a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php index 33dbcfc34b..30da257966 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php @@ -46,7 +46,7 @@ class RoutingCacheBuilder extends AbstractCacheBuilder $data['customUrls'] = $this->getCustomUrls($data['landingPages']); $data['applicationOverrides'] = $this->getApplicationOverrides($data['customUrls']); - $this->handleLandingPageWithOverriddenApplication($data); + $data = $this->handleLandingPageWithOverriddenApplication($data); return $data; } @@ -400,10 +400,10 @@ class RoutingCacheBuilder extends AbstractCacheBuilder return $data; } - protected function handleLandingPageWithOverriddenApplication(array &$data) + protected function handleLandingPageWithOverriddenApplication(array $data): array { if (!PACKAGE_ID) { - return; + return $data; } $landingPageController = $data['landingPages']['wcf'][0]; @@ -430,5 +430,7 @@ class RoutingCacheBuilder extends AbstractCacheBuilder $data['landingPages'][$overriddenApplication] = \array_slice($data['landingPages']['wcf'], 0); } } + + return $data; } }