use wcf\system\exception\SystemException;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
+use wcf\system\WCFACP;
/**
* Resolves incoming requests and performs lookups for controller to url mappings.
if ($classData === null) {
throw new SystemException("Unknown controller '" . $controller . "'");
}
- else {
+ else if (!$isAcpRequest) {
// handle controllers with a custom url
$controller = $classData['controller'];
return $this->lookupCache[$lookupKey];
}
- if (isset($this->customUrls['reverse'][$application]) && isset($this->customUrls['reverse'][$application][$controller])) {
+ if (!class_exists(WCFACP::class, false) && isset($this->customUrls['reverse'][$application]) && isset($this->customUrls['reverse'][$application][$controller])) {
$urlController = $this->customUrls['reverse'][$application][$controller];
}
else {