// check if this is the primary application and the landing page originates to the same application
$primaryApplication = ApplicationHandler::getInstance()->getPrimaryApplication();
$abbreviation = ApplicationHandler::getInstance()->getAbbreviation($primaryApplication->packageID);
- if ($abbreviation != $application || $landingPage === null || $landingPage->getApplication() != 'wcf') {
+ if ($abbreviation != $application || $landingPage === null) {
$ignoreController = true;
}
}
return;
}
- // assign the default controller
- $currentApplication = ApplicationHandler::getInstance()->getApplication($application);
- if ($controller = WCF::getApplicationObject($currentApplication)->getPrimaryController()) {
- $controller = explode('\\', $controller);
-
- if (URL_LEGACY_MODE) {
- HeaderUtil::redirect(LinkHandler::getInstance()->getLink(preg_replace('~(Action|Form|Page)$~', '', array_pop($controller)), array('application' => $controller[0])));
- exit;
- }
- else {
- $routeData['controller'] = self::getTokenizedController(preg_replace('~(Action|Form|Page)$~', '', array_pop($controller)));
- return;
- }
- }
-
HeaderUtil::redirect($landingPage->getLink());
exit;
}
// check if this is the primary application and the landing page originates to the same application
$primaryApplication = ApplicationHandler::getInstance()->getPrimaryApplication();
$abbreviation = ApplicationHandler::getInstance()->getAbbreviation($primaryApplication->packageID);
- if ($abbreviation != $application || $landingPage === null || $landingPage->getApplication() != 'wcf') {
+ if ($abbreviation != $application || $landingPage === null) {
$ignoreController = true;
}
}