Fix the GlobalTitleFail debug notice for HTMLButtonFields
authormainframe98 <k.s.werf@hotmail.com>
Wed, 8 Aug 2018 10:45:04 +0000 (11:45 +0100)
committermainframe98 <k.s.werf@hotmail.com>
Wed, 8 Aug 2018 10:45:04 +0000 (11:45 +0100)
commit71ea2670a9d5f6b5c21f64034328f4ad69c5628f
tree884aa205856bf509c6dbfedc92e24b5b548a736c
parentc807489e1c4582c883f2b2696c5cf77e579f82b7
Fix the GlobalTitleFail debug notice for HTMLButtonFields

These occur when buttonlabel-message is set. HTMLButtonField
parses the message in its constructor, but at that point the
context (provided by the form field by HTMLForm::$mParent) is
not yet available. The constructor of HTMLForm assigns $mParent,
but that constructor is only called after the button label
message is parsed.

Bug: T201497
Change-Id: I021c9ecf3bc934f2cf55ec100e799c1c12e7bc01
includes/htmlform/fields/HTMLButtonField.php