Pass objects to methods accepting them instead of relying on global objects.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 4 Jul 2012 09:33:00 +0000 (11:33 +0200)
committerAntoine Musso <hashar@free.fr>
Thu, 5 Jul 2012 18:03:20 +0000 (20:03 +0200)
commitb54d3294c15584d7e79bb9660286733da35ad2d1
treeb9fe8babb0f4c8dc2310ca6eb07b77bda4472584
parent547b24f781acbf84ea89c333cec45372b10eac68
Pass objects to methods accepting them instead of relying on global objects.

* Pass the User object to Title::quickUserCan()
* Pass the Context object to ChangesList::showCharacterDifference()

Change-Id: I53e5338c66c9d43b7b2257cd0515fe37dd05f5e3
includes/specials/SpecialContributions.php