The `$routeData` array is only processed locally, except when it is passed to
LinkHandler for renamed controllers (which can't happen for default
controllers), thus this is completely redundant with simply checking
`->isDefaultController()` in the other places, with the latter being much more
clear, because one does not need to think about where the `$routeData` might
end up.
foreach ($data as $key => $value) {
$routeData[$key] = $value;
}
-
- $routeData['isDefaultController'] = true;
}
}
$classApplication = $application;
if (
- !empty($routeData['isDefaultController'])
+ RouteHandler::getInstance()->isDefaultController()
&& !empty($routeData['application'])
&& $routeData['application'] !== $application
) {
}
// handle CMS page meta data
- $metaData = ['isDefaultController' => (!empty($routeData['isDefaultController']))];
+ $metaData = [
+ 'isDefaultController' => RouteHandler::getInstance()->isDefaultController()
+ ];
if (isset($routeData['cmsPageID'])) {
$metaData['cms'] = [
'pageID' => $routeData['cmsPageID'],