Removed usage of $wgUser in block and unblock processing:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 13 Nov 2011 07:25:56 +0000 (07:25 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 13 Nov 2011 07:25:56 +0000 (07:25 +0000)
commit56508fdca683cea881f5524ef5e3efbd559cb0e8
treeffb5198f40fe80b19c1858216a73bbf180ee17a4
parent5589f55de8ad718f2eb881da5fe73c2044eb75fb
Removed usage of $wgUser in block and unblock processing:
* Made HTMLFormField pass the HTMLForm object to the validation and filter callbacks (so that they can get a context)
* Added new parameter to SpecialBlock::checkUnblockSelf() to pass the user doing the request
* SpecialBlock::processForm() and SpecialUnblock::processUnblock() now require a context as second parameter; added SpecialBlock::processUIForm() and SpecialUnblock::processUIUnblock() as adaptators from HTMLForm as second parameter to context
includes/HTMLForm.php
includes/api/ApiBlock.php
includes/api/ApiUnblock.php
includes/specials/SpecialBlock.php
includes/specials/SpecialUnblock.php