From fbd306471419f0d80be647920380fdefbfa37622 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 27 May 2022 14:50:47 +0200 Subject: [PATCH] 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. --- .../lib/system/cache/builder/RoutingCacheBuilder.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; } } -- 2.20.1