From 5916be9f2a003ea2bb54546acf0d1a478bf0cb3b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 17 Aug 2020 18:03:54 +0200 Subject: [PATCH] Use of LinkHandler::getControllerLink() instead of LinkHandler::getLink() --- wcfsetup/install/files/lib/acp/form/AdAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php | 2 +- .../install/files/lib/acp/form/ArticleCategoryAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php | 2 +- .../files/lib/acp/form/BBCodeMediaProviderAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php | 2 +- .../install/files/lib/acp/form/CaptchaQuestionAddForm.class.php | 2 +- .../install/files/lib/acp/form/ContactOptionAddForm.class.php | 2 +- .../files/lib/acp/form/ContactRecipientAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php | 2 +- .../install/files/lib/acp/form/MediaCategoryAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php | 2 +- .../files/lib/acp/form/PackageUpdateServerAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/PageAddForm.class.php | 2 +- .../files/lib/acp/form/PaidSubscriptionAddForm.class.php | 2 +- .../install/files/lib/acp/form/ReactionTypeAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php | 2 +- .../install/files/lib/acp/form/SmileyCategoryAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/TagAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php | 2 +- .../install/files/lib/acp/form/TemplateGroupAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php | 2 +- .../install/files/lib/acp/form/TrophyCategoryAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/UserAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php | 2 +- .../files/lib/acp/form/UserGroupAssignmentAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php | 2 +- .../files/lib/acp/form/UserOptionCategoryAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php | 2 +- .../install/files/lib/form/AbstractFormBuilderForm.class.php | 2 +- 36 files changed, 36 insertions(+), 36 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php index 1c9aee2a2f..6bf891e242 100644 --- a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php @@ -219,7 +219,7 @@ class AdAddForm extends AbstractForm { WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('AdEdit', ['id' => $returnValues['returnValues']->adID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(AdEditForm::class, ['id' => $returnValues['returnValues']->adID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php index 3b05e4f657..05f59a60d4 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php @@ -456,7 +456,7 @@ class ArticleAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('ArticleEdit', ['id' => $article->getObjectID()]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ArticleEditForm::class, ['id' => $article->getObjectID()]), ]); // reset variables diff --git a/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php index 812e987034..230f4dfc99 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php @@ -86,7 +86,7 @@ class ArticleCategoryAddForm extends AbstractCategoryAddForm { parent::save(); WCF::getTPL()->assign([ - 'objectEditLink' => LinkHandler::getInstance()->getLink('ArticleCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ArticleCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), ]); $this->sortField = 'publicationDate'; diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php index 56c54dc1e4..dcf057b03b 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php @@ -272,7 +272,7 @@ class BBCodeAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('BBCodeEdit', ['id' => $returnValues['returnValues']->bbcodeID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(BBCodeEditForm::class, ['id' => $returnValues['returnValues']->bbcodeID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php index 0748d5e5b4..f269d8dea1 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php @@ -136,7 +136,7 @@ class BBCodeMediaProviderAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('BBCodeMediaProviderEdit', ['id' => $provider->providerID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(BBCodeMediaProviderEditForm::class, ['id' => $provider->providerID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php index 52f9d385ac..800ecb2940 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php @@ -564,7 +564,7 @@ class BoxAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('BoxEdit', ['id' => $box->getObjectID()]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(BoxEditForm::class, ['id' => $box->getObjectID()]), ]); // reset variables diff --git a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php index 0b51d42d18..9dba861bd2 100644 --- a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php @@ -120,7 +120,7 @@ class CaptchaQuestionAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('CaptchaQuestionEdit', ['id' => $questionID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(CaptchaQuestionEditForm::class, ['id' => $questionID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/ContactOptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ContactOptionAddForm.class.php index 95545dd477..b1ec92671a 100644 --- a/wcfsetup/install/files/lib/acp/form/ContactOptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ContactOptionAddForm.class.php @@ -71,7 +71,7 @@ class ContactOptionAddForm extends AbstractCustomOptionForm { parent::save(); WCF::getTPL()->assign([ - 'objectEditLink' => LinkHandler::getInstance()->getLink('ContactOptionEdit', ['id' => $this->objectAction->executeAction()['returnValues']->getObjectID()]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ContactOptionEditForm::class, ['id' => $this->objectAction->executeAction()['returnValues']->getObjectID()]), ]); } } diff --git a/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php index a92fcccf6e..97735ac81f 100644 --- a/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php @@ -158,7 +158,7 @@ class ContactRecipientAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('ContactRecipientEdit', ['id' => $recipientID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ContactRecipientEditForm::class, ['id' => $recipientID]), ]); // reset values diff --git a/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php b/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php index 402a0638da..f1050903d0 100755 --- a/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php @@ -191,7 +191,7 @@ class CronjobAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('CronjobEdit', ['id' => $cronjobID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(CronjobEditForm::class, ['id' => $cronjobID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php index c76f20be8c..4ca80af12b 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php @@ -203,7 +203,7 @@ class LabelAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('LabelEdit', ['id' => $labelID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(LabelEditForm::class, ['id' => $labelID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php index 7b69464a57..b2be3a9419 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php @@ -200,7 +200,7 @@ class LabelGroupAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('LabelGroupEdit', ['id' => $returnValues['returnValues']->groupID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(LabelGroupEditForm::class, ['id' => $returnValues['returnValues']->groupID]), ]); I18nHandler::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php index 5f9bb8f0e0..4896336891 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php @@ -158,7 +158,7 @@ class LanguageAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('LanguageEdit', ['id' => $this->language->languageID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(LanguageEditForm::class, ['id' => $this->language->languageID]), ]); // reset values diff --git a/wcfsetup/install/files/lib/acp/form/MediaCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MediaCategoryAddForm.class.php index 90a28a38a4..eb039cbbf0 100644 --- a/wcfsetup/install/files/lib/acp/form/MediaCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MediaCategoryAddForm.class.php @@ -30,7 +30,7 @@ class MediaCategoryAddForm extends AbstractCategoryAddForm { parent::save(); WCF::getTPL()->assign([ - 'objectEditLink' => LinkHandler::getInstance()->getLink('MediaCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(MediaCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), ]); } } diff --git a/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php index fa7deb1d0b..f03c4bd9fd 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php @@ -213,7 +213,7 @@ class MenuAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('MenuEdit', ['id' => $menuEditor->menuID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(MenuEditForm::class, ['id' => $menuEditor->menuID]), ]); I18nHandler::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php index 76d26de80a..b7ec2df95f 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php @@ -272,7 +272,7 @@ class MenuItemAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('MenuItemEdit', ['id' => $menuItem->itemID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(MenuItemEditForm::class, ['id' => $menuItem->itemID]), ]); // reset variables diff --git a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php index d2803350a9..e1deea4f1d 100644 --- a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php @@ -243,7 +243,7 @@ class NoticeAddForm extends AbstractForm { WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('NoticeEdit', ['id' => $returnValues['returnValues']->noticeID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(NoticeEditForm::class, ['id' => $returnValues['returnValues']->noticeID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php index e67eb1830f..b8ac6729f6 100755 --- a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php @@ -93,7 +93,7 @@ class PackageUpdateServerAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('PackageUpdateServerEdit', ['id' => $returnValues['returnValues']->packageUpdateServerID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(PackageUpdateServerEditForm::class, ['id' => $returnValues['returnValues']->packageUpdateServerID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php index aa3048c84e..285550278e 100644 --- a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php @@ -638,7 +638,7 @@ class PageAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('PageEdit', ['id' => $page->pageID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(PageEditForm::class, ['id' => $page->pageID]), ]); // reset variables diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php index bdaf074d74..7a48e72286 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php @@ -286,7 +286,7 @@ class PaidSubscriptionAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('PaidSubscriptionEdit', ['id' => $returnValues['returnValues']->subscriptionID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(PaidSubscriptionEditForm::class, ['id' => $returnValues['returnValues']->subscriptionID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php index e416bc59c6..3ebe24818b 100644 --- a/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php @@ -47,7 +47,7 @@ class ReactionTypeAddForm extends AbstractFormBuilderForm { /** * @inheritDoc */ - public $objectEditLinkController = 'ReactionTypeEdit'; + public $objectEditLinkController = ReactionTypeEditForm::class; /** * @inheritDoc diff --git a/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php index 04068283ba..b277cd7d5d 100644 --- a/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php @@ -227,7 +227,7 @@ class SmileyAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('SmileyEdit', ['id' => $smileyID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(SmileyEditForm::class, ['id' => $smileyID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/SmileyCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/SmileyCategoryAddForm.class.php index af8e1fcc57..35f4557132 100644 --- a/wcfsetup/install/files/lib/acp/form/SmileyCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SmileyCategoryAddForm.class.php @@ -39,7 +39,7 @@ class SmileyCategoryAddForm extends AbstractCategoryAddForm { parent::save(); WCF::getTPL()->assign([ - 'objectEditLink' => LinkHandler::getInstance()->getLink('SmileyCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(SmileyCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), ]); } } diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index bf9598ed8e..5801a6e51c 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -808,7 +808,7 @@ class StyleAddForm extends AbstractForm { WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('StyleEdit', ['id' => $style->styleID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(StyleEditForm::class, ['id' => $style->styleID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php index d715438852..7f1043e2ec 100644 --- a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php @@ -182,7 +182,7 @@ class TagAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('TagEdit', ['id' => $returnValues['returnValues']->tagID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TagEditForm::class, ['id' => $returnValues['returnValues']->tagID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php index 199e4108c1..0d2e489059 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php @@ -207,7 +207,7 @@ class TemplateAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('TemplateEdit', ['id' => $returnValues['returnValues']->templateID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TemplateEditForm::class, ['id' => $returnValues['returnValues']->templateID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php index d77b461120..031e1e20df 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php @@ -143,7 +143,7 @@ class TemplateGroupAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('TemplateGroupEdit', ['id' => $returnValues['returnValues']->templateGroupID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TemplateGroupEditForm::class, ['id' => $returnValues['returnValues']->templateGroupID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php index 79ccc7bdf0..8fb49e0833 100644 --- a/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php @@ -331,7 +331,7 @@ class TrophyAddForm extends AbstractAcpForm { $this->reset(); WCF::getTPL()->assign([ - 'objectEditLink' => LinkHandler::getInstance()->getLink('TrophyEdit', ['id' => $returnValues['returnValues']->trophyID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TrophyEditForm::class, ['id' => $returnValues['returnValues']->trophyID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/TrophyCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TrophyCategoryAddForm.class.php index 64bb45b9f4..0c598d66fd 100644 --- a/wcfsetup/install/files/lib/acp/form/TrophyCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TrophyCategoryAddForm.class.php @@ -40,7 +40,7 @@ class TrophyCategoryAddForm extends AbstractCategoryAddForm { parent::save(); WCF::getTPL()->assign([ - 'objectEditLink' => LinkHandler::getInstance()->getLink('TrophyCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TrophyCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]), ]); } } diff --git a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php index e79572a647..23f5984dbd 100644 --- a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php @@ -276,7 +276,7 @@ class UserAddForm extends UserOptionListForm { // show empty add form WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('UserEdit', ['id' => $returnValues['returnValues']->userID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserEditForm::class, ['id' => $returnValues['returnValues']->userID]), ]); // reset values diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php index 9bf9c8c63f..df7eb775a1 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php @@ -191,7 +191,7 @@ class UserGroupAddForm extends AbstractOptionListForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('UserGroupEdit', ['id' => $groupID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserGroupEditForm::class, ['id' => $groupID]), ]); // reset values diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php index 23a3aff77e..fb3b0e304d 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php @@ -153,7 +153,7 @@ class UserGroupAssignmentAddForm extends AbstractForm { WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('UserGroupAssignmentEdit', ['id' => $returnValues['returnValues']->assignmentID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserGroupAssignmentEditForm::class, ['id' => $returnValues['returnValues']->assignmentID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php index d99c1bce27..fc6e6f3c63 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php @@ -334,7 +334,7 @@ class UserOptionAddForm extends AbstractForm { // show success WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('UserOptionEdit', ['id' => $userOption->optionID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserOptionEditForm::class, ['id' => $userOption->optionID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php index 460833339f..bd6f461b4c 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php @@ -104,7 +104,7 @@ class UserOptionCategoryAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('UserOptionCategoryEdit', ['id' => $categoryID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserOptionCategoryEditForm::class, ['id' => $categoryID]), ]); } diff --git a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php index 86c95f9ada..155a88f832 100644 --- a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php @@ -226,7 +226,7 @@ class UserRankAddForm extends AbstractForm { // show success message WCF::getTPL()->assign([ 'success' => true, - 'objectEditLink' => LinkHandler::getInstance()->getLink('UserRankEdit', ['id' => $rankID]), + 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserRankEditForm::class, ['id' => $rankID]), ]); } diff --git a/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php b/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php index 5281103583..937a13e7cf 100644 --- a/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php @@ -182,7 +182,7 @@ abstract class AbstractFormBuilderForm extends AbstractForm { WCF::getTPL()->assign('success', true); if ($this->formAction === 'create' && $this->objectEditLinkController) { - WCF::getTPL()->assign('objectEditLink', LinkHandler::getInstance()->getLink($this->objectEditLinkController, [ + WCF::getTPL()->assign('objectEditLink', LinkHandler::getInstance()->getControllerLink($this->objectEditLinkController, [ 'application' => $this->objectEditLinkApplication, 'id' => $this->objectAction->getReturnValues()['returnValues']->getObjectID(), ])); -- 2.20.1