// handle controller names
if ($value === 'controller') {
- $components[$value] = $this->getControllerName($application, $components[$value]);
+ $components[$value] = ControllerMap::getInstance()->lookup(
+ $application,
+ $components[$value],
+ !$this->isACP()
+ );
}
$link .= $components[$value];
return false;
}
-
- /**
- * Returns the transformed controller name.
- *
- * @param string $application
- * @param string $controller
- * @return string
- */
- protected function getControllerName($application, $controller)
- {
- return ControllerMap::getInstance()->lookup($application, $controller, !$this->isACP());
- }
}