Remove odd `\array_slice()` call in RoutingCacheBuilder::handleLandingPageWithOverrid...
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 12:50:47 +0000 (14:50 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 12:50:47 +0000 (14:50 +0200)
This is a simple assignment with extra steps. It definitely is no longer
required since e9e0e45c728a24aa49c00b0d51679ede40ad43df and likely was not
required even before that.

wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php

index 24255f66c167ea2a8bb725c2f784f7c8152c01ed..0a17b72ca7533eb2d1b790bc1ed675446b772418 100644 (file)
@@ -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'];
             }
         }