From: Matthias Schmidt Date: Fri, 15 Jan 2021 10:04:33 +0000 (+0100) Subject: Add missing calls to parent constructors in subclasses of `TextFormField` X-Git-Tag: 5.4.0_Alpha_1~448 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21ee8fd13056dc1c597fb1b7098fbe1045399a70;p=GitHub%2FWoltLab%2FWCF.git Add missing calls to parent constructors in subclasses of `TextFormField` --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php index f98f87813c..8cffd279ce 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php @@ -47,6 +47,8 @@ class ClassNameFormField extends TextFormField { * Creates a new instance of `ClassNameFormField`. */ public function __construct() { + parent::__construct(); + $this->label('wcf.form.field.className'); } diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php index e15a5f038d..5bfb374b52 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php @@ -17,6 +17,8 @@ class TitleFormField extends TextFormField { * Creates a new instance of `TitleFormField`. */ public function __construct() { + parent::__construct(); + $this->label('wcf.global.title'); }