Look mum, no globals! Implement a RequestContext for HTMLForm, passed in the constru...
authorHappy-melon <happy-melon@users.mediawiki.org>
Wed, 13 Apr 2011 16:51:22 +0000 (16:51 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Wed, 13 Apr 2011 16:51:22 +0000 (16:51 +0000)
commit58caa451fad5206e0c51234051c62ec8fbeffad8
tree3b4ba5fe83f17d20abbbf4b47c72c9faaaeadb6e
parent47e3f922dab3d26966c00a929f25e2659f6d9881
Look mum, no globals!  Implement a RequestContext for HTMLForm, passed in the constructor.  Currently this is optional with B/C; at a later date it should be made compulsory.  Doing this removes the need to call $form->setTitle() on every single use; only when you want to set the title to something other than the page context title.  Implemented the new syntax in a sample of forms.  Also fix a few minor errors in HTMLForm.php that my IDE complained about.
includes/HTMLForm.php
includes/specials/SpecialBlock.php
includes/specials/SpecialBlockList.php
includes/specials/SpecialPreferences.php
includes/specials/SpecialUnblock.php