Convert Special:EmailUser to use OOUIHTMLForm
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 5 Nov 2015 17:54:57 +0000 (18:54 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 2 Jan 2016 18:11:48 +0000 (18:11 +0000)
commitbc9b2162cbfeaabdcbfe8bdf342a33523ea4f3d0
tree2c90dddcc72cca1da4735ba9a11c0b6f8647181e
parent51cce7a83effdf8b8ca7e079d36513ab28809ce9
Convert Special:EmailUser to use OOUIHTMLForm

It already used HTMLForm for the main form, but the form, which asked for
the username didn't.

Converted the "Enter username" form to use HTMLForm and show it, if no user-
name was passed to the form, show the main "Send e-mail" form, instead.

Extra points:
 - Let HTMLForm::setSubmit*() function return it's own HTMLForm instance

Bug: T117791
Change-Id: I6231577047c93781496e0f8af6809e2ef49e662a
includes/htmlform/HTMLForm.php
includes/specials/SpecialEmailuser.php