Use of LinkHandler::getControllerLink() instead of LinkHandler::getLink()
authorMarcel Werk <burntime@woltlab.com>
Mon, 17 Aug 2020 16:03:54 +0000 (18:03 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 17 Aug 2020 16:03:54 +0000 (18:03 +0200)
36 files changed:
wcfsetup/install/files/lib/acp/form/AdAddForm.class.php
wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php
wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php
wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php
wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php
wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php
wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php
wcfsetup/install/files/lib/acp/form/ContactOptionAddForm.class.php
wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php
wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php
wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php
wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php
wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php
wcfsetup/install/files/lib/acp/form/MediaCategoryAddForm.class.php
wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php
wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php
wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php
wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php
wcfsetup/install/files/lib/acp/form/PageAddForm.class.php
wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php
wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php
wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php
wcfsetup/install/files/lib/acp/form/SmileyCategoryAddForm.class.php
wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php
wcfsetup/install/files/lib/acp/form/TagAddForm.class.php
wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php
wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php
wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php
wcfsetup/install/files/lib/acp/form/TrophyCategoryAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php
wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php

index 1c9aee2a2f4e9934215291a0984d1c11c8f8cd83..6bf891e2427958fa20fe5762ea529cf88254c499 100644 (file)
@@ -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]),
                ]);
        }
        
index 3b05e4f65779c530b5ef260d5d673d49a528fb12..05f59a60d43b2ef881246a6c23ff44ebbe091eb2 100644 (file)
@@ -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
index 812e987034f833663797834c46413d78c20bf677..230f4dfc99a32561fb441eff684b9ec3a07e7fa4 100644 (file)
@@ -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';
index 56c54dc1e4ac868012195e12f80c9903917254fe..dcf057b03b609862068b82b682a9020b339f000c 100644 (file)
@@ -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]),
                ]);
        }
        
index 0748d5e5b43fc5b8990cf529ca42c3e863f010e6..f269d8dea1b018ddb38c9b1bb876a959dcebf22c 100644 (file)
@@ -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]),
                ]);
        }
        
index 52f9d385ac0015e9293c2980b9d64fe410d977e6..800ecb2940315e8b8395dc5552112c5d0391daf8 100644 (file)
@@ -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
index 0b51d42d18ce63177e88edff260fab332152e5ef..9dba861bd2c2a90e8eebe0214dfc0e301619f827 100644 (file)
@@ -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]),
                ]);
        }
        
index 95545dd4775a20f582b529036d6bddd6bbf8c215..b1ec92671aab3c2ada8c5c5f53283343faa6b416 100644 (file)
@@ -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()]),
                ]);
        }
 }
index a92fcccf6e8dee9ea5824d23429be0098e625cea..97735ac81f74fa6909f806c161a7d6317af2f8c7 100644 (file)
@@ -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
index 402a0638da74216f2fa58f484b98d2565f60273e..f1050903d0ccd009ea99bc7e918e98da57161781 100755 (executable)
@@ -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]),
                ]);
        }
        
index c76f20be8cfc2abfbb2418391cfae74d651b2952..4ca80af12b2f90f5348a25e9105d9be8ae7b3649 100644 (file)
@@ -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]),
                ]);
        }
        
index 7b69464a5728cad61851626db7502b82a76b8f97..b2be3a9419e97a6c2974097436f5832c2b4a7327 100644 (file)
@@ -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();
index 5f9bb8f0e0c7dcf2f3e7c0612dc3b8b9a737b07b..48963368915a370ce8f2b0fb3aa988f7d61a3adf 100644 (file)
@@ -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
index 90a28a38a400da295f31de0c8e6361e23446ddb2..eb039cbbf075beb8fb9c80df8814f6334f2d6eef 100644 (file)
@@ -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]),
                ]);
        }
 }
index fa7deb1d0b23726ce770405006b8c37a88e265e2..f03c4bd9fd88b68bc4ff25505b264f4b3a9d8cdf 100644 (file)
@@ -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();
index 76d26de80acab5bf95e213e3295733da9ddc9711..b7ec2df95fb74ef07f7b8ea88e390a9a15561323 100644 (file)
@@ -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
index d2803350a90e931cae9f4cbba6140a1715a3aae6..e1deea4f1def63508947becd4fe215a7aef68426 100644 (file)
@@ -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]),
                ]);
        }
        
index e67eb1830fbf5997e98f1908c690ec4122935e69..b8ac6729f65f5ce236a8536180f5649f2307cc60 100755 (executable)
@@ -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]),
                ]);
        }
        
index aa3048c84eed406aa02e007fd5e511128eff9c98..285550278e94d3444281aeaf346acf57ff03d714 100644 (file)
@@ -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
index bdaf074d741d1b7423bfa11fc02388f80071a423..7a48e72286aad3db1a4eaeaf17728f3f4f1154c1 100644 (file)
@@ -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]),
                ]);
        }
        
index e416bc59c6c2c143af9f129a2353763f7d22dcb1..3ebe24818b223138827465953a09a85c98d88437 100644 (file)
@@ -47,7 +47,7 @@ class ReactionTypeAddForm extends AbstractFormBuilderForm {
        /**
         * @inheritDoc
         */
-       public $objectEditLinkController = 'ReactionTypeEdit';
+       public $objectEditLinkController = ReactionTypeEditForm::class;
                
        /**
         * @inheritDoc
index 04068283ba2e1183eb39620a8f56a7db72cc77ca..b277cd7d5dd4fd8621e1eae7d967bc78ee7ed474 100644 (file)
@@ -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]),
                ]);
        }
        
index af8e1fcc5725aa442b99e83bd9ab26dfe838b932..35f45571322efe224c60c2a412f40e3202d59eef 100644 (file)
@@ -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]),
                ]);
        }
 }
index bf9598ed8edc0691f67d3803e86b3ee6665ceb24..5801a6e51cbe8760a485d32c8dd791599be5bd72 100644 (file)
@@ -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]),
                ]);
        }
        
index d715438852786c30d5eabddc64545dca1bfc3e54..7f1043e2ec4d32bf239665737c0986b6956e3dd3 100644 (file)
@@ -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]),
                ]);
        }
        
index 199e4108c10c2d823956d802f98bdd72a8fa1755..0d2e48905909a84a0c84115cdf73d7c72f1cf7a6 100644 (file)
@@ -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]),
                ]);
        }
        
index d77b4611202297bc8583ffd8508c3c15ca9ae677..031e1e20df3439e105b0536c320e831e81f2c7e9 100644 (file)
@@ -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]),
                ]);
        }
        
index 79ccc7bdf0949a56f348a61a49e5be187afa2fa7..8fb49e083327a4ea979e048ee8c0532460638286 100644 (file)
@@ -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]),
                ]);
        }
        
index 64bb45b9f444c91db03a08f60e246a348f1f1c1b..0c598d66fddbf01bc9d0e4b1ce4a190c5034996b 100644 (file)
@@ -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]),
                ]);
        }
 }
index e79572a647562be64cb2ab06f4c6cbbb452b8d1e..23f5984dbd20d958585b5d380eb8495f44189f1b 100644 (file)
@@ -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
index 9bf9c8c63f5644d1b500711c9569d6132305140e..df7eb775a13be8eb052a043dfbd6e20577eb1ed4 100755 (executable)
@@ -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
index 23a3aff77e0c9060e95147d1460a9112fc6e7280..fb3b0e304d6236e04d3f9e572f1ee5cf1f56c752 100644 (file)
@@ -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]),
                ]);
        }
        
index d99c1bce2729cfdf7c26533e11f1345fd14a24b1..fc6e6f3c63a07cbd2058e1ace7c7574ee3d50f1b 100644 (file)
@@ -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]),
                ]);
        }
        
index 460833339f33c243749947668190564e4fb77bc7..bd6f461b4cc0bd1191cae933e58333b0fc786f0f 100644 (file)
@@ -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]),
                ]);
        }
        
index 86c95f9ada1d7af2abc8a9b7d5f3587b034a2fad..155a88f83220a6c7a3d3a0bd663b3d571bdafcde 100644 (file)
@@ -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]),
                ]);
        }
        
index 5281103583165a49cbbb9b481fba4c68f4f32970..937a13e7cf508362b2c3188f0b3e67395796a8eb 100644 (file)
@@ -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(),
                        ]));