Set form name for HTMLForms in FormAction subclasses.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Mon, 6 Aug 2012 21:02:25 +0000 (17:02 -0400)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 6 Aug 2012 21:11:25 +0000 (21:11 +0000)
commit36bce64420595d8544bd380395702dec083ca667
treeea187529eefe193f25f8875f7056f512e7e5431e
parentbf9ddc0287aa45095dc6456c612935970a464f7a
Set form name for HTMLForms in FormAction subclasses.

Used FormAction::getName() to set the form name for
FormAction subclasses. Without a form name, HTMLForm
creates weird messages names for certain fields (e.g.,
in a form with sections, HTMLForm will use the message
"$prefix-$key" for the legend, but if no prefix exists,
it just becomes "-$key").

Change-Id: I1c19775e44163f4335e30f1d1f73a6e002cb57ec
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
includes/Action.php