Slight improvements to FormSpecialPage behavior.
authorparent5446 <tylerromeo@gmail.com>
Wed, 17 Apr 2013 20:45:51 +0000 (16:45 -0400)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 22 Apr 2013 16:53:36 +0000 (16:53 +0000)
commitdd85e115075661e9e0bb92c7f6d4ab9604efd980
tree2c19bf7c2839f1586aa2f595ca88549f4ba2ba50
parentaf125df5199b5c232bf335d735cecc6d8f8e9784
Slight improvements to FormSpecialPage behavior.

Added a default implementation of doing nothing
to FormSpecialPage::onSuccess to avoid forms that
don't do anything.

Added a default implementation of FormSpecialPage::setParameter
to store the parameter in a protected variable in
case the child class wants to use it.

Made FormSpecialPage::getForm first check whether the
header message text exists before adding it as header
text, for those forms that don't have header text.

Change-Id: Ifb49c3b2f4079a5fbe379c44b63ee2dcee9eeb48
includes/SpecialPage.php