From d674ee8de9d98f74d23baf62a0242f81164024d8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 8 Sep 2023 13:20:44 +0200 Subject: [PATCH] Improve the navigation between `License` and `LicenseEdit` --- .../files/acp/templates/licenseEdit.tpl | 19 +++++++++++++++++++ .../lib/acp/form/LicenseEditForm.class.php | 12 ------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/licenseEdit.tpl b/wcfsetup/install/files/acp/templates/licenseEdit.tpl index 335f2a5ad1..11721289ab 100644 --- a/wcfsetup/install/files/acp/templates/licenseEdit.tpl +++ b/wcfsetup/install/files/acp/templates/licenseEdit.tpl @@ -4,6 +4,25 @@

{lang}wcf.acp.license.edit{/lang}

+ + {hascontent} + + {/hascontent} {@$form->getHtml()} diff --git a/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php b/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php index 02f1a376da..987f7fa7c9 100644 --- a/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php @@ -258,16 +258,4 @@ final class LicenseEditForm extends AbstractFormBuilderForm return new RedirectResponse($this->url); } } - - /** - * @inheritDoc - */ - public function assignVariables() - { - parent::assignVariables(); - - WCF::getTPL()->assign([ - 'url' => $this->url, - ]); - } } -- 2.20.1