From: Tim Düsterhus Date: Wed, 1 Jun 2022 15:00:55 +0000 (+0200) Subject: Remove dead branch in ControllerMap::isDefaultController() X-Git-Tag: 6.0.0_Alpha_1~1218^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff4b1b6c618ddf42fea0f165ea9dad2469bc8ca5;p=GitHub%2FWoltLab%2FWCF.git Remove dead branch in ControllerMap::isDefaultController() Since the previous changes it is impossible for an entry `''` to exist in the custom URL mapping, causing this branch to never be taken. This essentially reverts e6fac1cae9428760436179efc10cc7989c2d64b9. --- diff --git a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php index f5f1aa70bb..8b58e68353 100644 --- a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php +++ b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php @@ -309,14 +309,6 @@ class ControllerMap extends SingletonFactory return false; } - if ( - $matches['controller'] == $this->landingPages[$application]['controller'] - && isset($this->customUrls['lookup'][$application]['']) - && $this->customUrls['lookup'][$application][''] !== $controller - ) { - return false; - } - $controller = $matches['controller']; } }