* name of the application for the link to the edit form
* @var string
* @since 5.3
+ * @deprecated 6.2 No longer in use.
*/
public $objectEditLinkApplication = 'wcf';
WCF::getTPL()->assign(
'objectEditLink',
LinkHandler::getInstance()->getControllerLink($this->objectEditLinkController, [
- 'application' => $this->objectEditLinkApplication,
'id' => $this->objectAction->getReturnValues()['returnValues']->getObjectID(),
])
);
$matches = $this->controllerRegex->getMatches();
- // important: matches cannot overwrite explicitly set parameters
- $parameters['application'] = $parameters['application'] ?? $matches['application'];
- $parameters['isACP'] = $parameters['isACP'] ?? $matches['isAcp'];
- $parameters['forceFrontend'] = $parameters['forceFrontend'] ?? !$matches['isAcp'];
+ // Overwrite legacy parameters, as these always result from the given controller class.
+ $parameters['application'] = $matches['application'];
+ $parameters['isACP'] = $matches['isAcp'];
+ $parameters['forceFrontend'] = !$matches['isAcp'];
return $this->getLink($matches['controller'], $parameters, $url);
}