Removed usage of global objects in SpecialEmailUser
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 13 Apr 2012 10:54:52 +0000 (12:54 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 13 Apr 2012 11:05:36 +0000 (13:05 +0200)
commita3d9f524dbbcf94157c87432bc9179e6bf0b53e1
tree610a35480c0cf39a19a6e041606c3cd814b5b096
parent2fcd7dbf7ce7bfc8912078f38d98563dd0766569
Removed usage of global objects in SpecialEmailUser

* Added $context parameter to SpecialEmailUser::submit() to replace usage of $wgUser and wfMsg*() calls; added SpecialEmailUser::uiSubmit() as wrapper for HTMLForm submission and updated the call in ApiEmailUser
* Use local context to get messages

Change-Id: Id5a7330486b9ccd5325293590eeefeba1c0f0536
includes/api/ApiEmailUser.php
includes/specials/SpecialEmailuser.php