Use LanguageItemFormNode in MultifactorManageForm
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 14 Dec 2020 09:48:06 +0000 (10:48 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 14 Dec 2020 09:49:24 +0000 (10:49 +0100)
com.woltlab.wcf/templates/__multifactorManageInitialBackup.tpl [deleted file]
wcfsetup/install/files/lib/form/MultifactorManageForm.class.php

diff --git a/com.woltlab.wcf/templates/__multifactorManageInitialBackup.tpl b/com.woltlab.wcf/templates/__multifactorManageInitialBackup.tpl
deleted file mode 100644 (file)
index 0d302c7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{lang}wcf.user.security.multifactor.initialBackup{/lang}
index c37482237f5b313073694f2c3b8eb834e6bc5526..c41f47eae4f42aa5fca51804074acea09c12e25a 100644 (file)
@@ -10,7 +10,7 @@ use wcf\system\exception\IllegalLinkException;
 use wcf\system\exception\PermissionDeniedException;
 use wcf\system\form\builder\FormDocument;
 use wcf\system\form\builder\IFormParentNode;
-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;
@@ -196,8 +196,8 @@ class MultifactorManageForm extends AbstractFormBuilderForm {
                /** @var IFormParentNode $container */
                $container = $form->getNodeById('existingCodesContainer');
                $container->insertBefore(
-                       TemplateFormNode::create('initialBackup')
-                               ->templateName('__multifactorManageInitialBackup'),
+                       LanguageItemFormNode::create('initialBackup')
+                               ->languageItem('wcf.user.security.multifactor.initialBackup'),
                        'existingCodes'
                );
                $form->build();