Improve HTMLSubmitField return value
authorGergő Tisza <tgr.huwiki@gmail.com>
Fri, 1 Apr 2016 12:12:06 +0000 (15:12 +0300)
committerGergő Tisza <gtisza@wikimedia.org>
Mon, 18 Apr 2016 14:21:33 +0000 (14:21 +0000)
commit1bd5ee1f0600721922ca43ac9daa10dafc19c772
treefe9dfd86f845b52a9989614b4124247faf9f1fbf
parent8e7a0a0912bb98a4a12375b354e23f03262bf213
Improve HTMLSubmitField return value

- do not return anything when the button was not clicked
- return boolean true (instead of the button text) when it was clicked

Unbreaks submit fields which currently don't return anything so there is
no easy way to tell whether they have been clicked.

Change-Id: If4e0dfb6ee6674f0dace80a01850e2d0cbbdb47a
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLFormField.php
includes/htmlform/HTMLFormFieldCloner.php
includes/htmlform/HTMLSubmitField.php