From: Tim Düsterhus Date: Fri, 27 May 2022 12:50:47 +0000 (+0200) Subject: Remove odd `\array_slice()` call in RoutingCacheBuilder::handleLandingPageWithOverrid... X-Git-Tag: 6.0.0_Alpha_1~1245^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbd306471419f0d80be647920380fdefbfa37622;p=GitHub%2FWoltLab%2FWCF.git Remove odd `\array_slice()` call in RoutingCacheBuilder::handleLandingPageWithOverriddenApplication() This is a simple assignment with extra steps. It definitely is no longer required since e9e0e45c728a24aa49c00b0d51679ede40ad43df and likely was not required even before that. --- 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 24255f66c1..0a17b72ca7 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php @@ -417,7 +417,7 @@ class RoutingCacheBuilder extends AbstractCacheBuilder // The original landing page of the target app has been implicitly overridden, thus we need to // replace the data of the affected app. This is necessary in order to avoid the original landing // page to be conflicting with the global landing page, eventually overshadowing it. - $data['landingPages'][$overriddenApplication] = \array_slice($data['landingPages']['wcf'], 0); + $data['landingPages'][$overriddenApplication] = $data['landingPages']['wcf']; } }