From: Tim Düsterhus Date: Mon, 14 Dec 2020 09:46:31 +0000 (+0100) Subject: Use LanguageItemFormNode in MultifactorDisableForm X-Git-Tag: 5.4.0_Alpha_1~543^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86f40099943dfaf5323c8e3c3a66f6d8490d3277;p=GitHub%2FWoltLab%2FWCF.git Use LanguageItemFormNode in MultifactorDisableForm --- diff --git a/com.woltlab.wcf/templates/__multifactorDisableExplanation.tpl b/com.woltlab.wcf/templates/__multifactorDisableExplanation.tpl deleted file mode 100644 index a6c516e47e..0000000000 --- a/com.woltlab.wcf/templates/__multifactorDisableExplanation.tpl +++ /dev/null @@ -1 +0,0 @@ -{lang}wcf.user.security.multifactor.disable.explanation{/lang} diff --git a/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php b/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php index 264915e767..53d31bc802 100644 --- a/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php @@ -8,7 +8,7 @@ use wcf\system\exception\PermissionDeniedException; use wcf\system\form\builder\field\BooleanFormField; use wcf\system\form\builder\field\validation\FormFieldValidationError; use wcf\system\form\builder\field\validation\FormFieldValidator; -use wcf\system\form\builder\TemplateFormNode; +use wcf\system\form\builder\LanguageItemFormNode; use wcf\system\menu\user\UserMenu; use wcf\system\request\LinkHandler; use wcf\system\user\authentication\TReauthenticationCheck; @@ -89,8 +89,8 @@ class MultifactorDisableForm extends AbstractFormBuilderForm { parent::createForm(); $this->form->appendChildren([ - TemplateFormNode::create('explanation') - ->templateName('__multifactorDisableExplanation') + LanguageItemFormNode::create('explanation') + ->languageItem('wcf.user.security.multifactor.disable.explanation') ->variables([ 'remaining' => $this->setupsWithoutDisableRequest( $this->setupsWithoutBackupCodes($this->setups)