Unify handling of *-message(s) settings in HTMLForm
authorGergő Tisza <tgr.huwiki@gmail.com>
Fri, 1 Apr 2016 12:00:44 +0000 (15:00 +0300)
committerGergő Tisza <tgr.huwiki@gmail.com>
Fri, 1 Apr 2016 14:07:14 +0000 (17:07 +0300)
commit8dc5e1857dc50772279c30b1d502c36f802cc1a7
tree6f761327c1f5cf20fe5f851b27503f848956bd70
parent718f3f78b583a473035f39a8c46e0a9829d2e0bf
Unify handling of *-message(s) settings in HTMLForm

*-message(s) settings were documented as message key strings or arrays
of message key strings, but some actually accepted [key, params...]
arrays as well. They did not accept Message objects, which would be
the cleanest and most flexible method of message passing.

The patch adds a new method to process these settings (which accepts
a messages key, a [key, params...] array or a Message object), and
makes all *-message(s) usage call that.

Change-Id: Ida647973a58bea83fdbd53335e63b5a8615c16e4
includes/htmlform/HTMLAutoCompleteSelectField.php
includes/htmlform/HTMLButtonField.php
includes/htmlform/HTMLEditTools.php
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLFormField.php
includes/htmlform/HTMLFormFieldCloner.php
includes/htmlform/HTMLSelectAndOtherField.php