Unify the handling of the default controller for ACP requests
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 22 Jun 2022 14:33:56 +0000 (16:33 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 22 Jun 2022 15:03:34 +0000 (17:03 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index f086ca126b72969ba543465cbc80511951207121..05726bdb30d0180e1c2420c8866503c247e6bf23 100644 (file)
@@ -128,7 +128,7 @@ final class RequestHandler extends SingletonFactory
             \assert(RouteHandler::getInstance()->isDefaultController() xor ($routeData['controller'] ?? false));
 
             if ($this->isACPRequest()) {
-                if (empty($routeData['controller'])) {
+                if (RouteHandler::getInstance()->isDefaultController()) {
                     $routeData['controller'] = 'index';
 
                     if ($application !== 'wcf') {