From 76f0e889e1c95d8804e3ec68da6465a3a5e22c36 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 14 Jun 2021 07:43:06 +0200 Subject: [PATCH] Use `SourceCodeFormField` --- .../plugin/LanguagePackageInstallationPlugin.class.php | 6 +++--- .../TemplateListenerPackageInstallationPlugin.class.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 3870da6b82..e70667a2f8 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -17,9 +17,9 @@ use wcf\system\devtools\pip\TMultiXmlGuiPackageInstallationPlugin; use wcf\system\exception\SystemException; use wcf\system\form\builder\container\FormContainer; use wcf\system\form\builder\field\dependency\ValueFormFieldDependency; -use wcf\system\form\builder\field\MultilineTextFormField; use wcf\system\form\builder\field\RadioButtonFormField; use wcf\system\form\builder\field\SingleSelectionFormField; +use wcf\system\form\builder\field\SourceCodeFormField; use wcf\system\form\builder\field\TextFormField; use wcf\system\form\builder\field\validation\FormFieldValidationError; use wcf\system\form\builder\field\validation\FormFieldValidator; @@ -512,10 +512,10 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl } $dataContainer->appendChild( - MultilineTextFormField::create($language->languageCode) + SourceCodeFormField::create($language->languageCode) ->label($language->languageName) ->description($description) - ->addFieldClass('monospace') + ->language('smartymixed') ); } } diff --git a/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php index 966950b524..bbfe7f1310 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php @@ -16,9 +16,9 @@ use wcf\system\form\builder\container\FormContainer; use wcf\system\form\builder\data\processor\CustomFormDataProcessor; use wcf\system\form\builder\field\dependency\ValueFormFieldDependency; use wcf\system\form\builder\field\IntegerFormField; -use wcf\system\form\builder\field\MultilineTextFormField; use wcf\system\form\builder\field\option\OptionFormField; use wcf\system\form\builder\field\SingleSelectionFormField; +use wcf\system\form\builder\field\SourceCodeFormField; use wcf\system\form\builder\field\TextFormField; use wcf\system\form\builder\field\user\group\option\UserGroupOptionFormField; use wcf\system\form\builder\field\validation\FormFieldValidationError; @@ -362,12 +362,12 @@ class TemplateListenerPackageInstallationPlugin extends AbstractXMLPackageInstal } $dataContainer->appendChildren([ - MultilineTextFormField::create('templateCode') + SourceCodeFormField::create('templateCode') ->objectProperty('templatecode') ->label('wcf.acp.pip.templateListener.templateCode') ->description('wcf.acp.pip.templateListener.templateCode.description') ->required() - ->addFieldClass('monospace'), + ->language('smartymixed'), IntegerFormField::create('niceValue') ->objectProperty('nice') -- 2.20.1