The current id number is useless for IP addresses, so it now
passes a proper User object.
For context, the SpecialPage instance is also provided.
Change-Id: Ie196611d504b3969bcdfb5c589716af2f3c54e14
&$fields: Current HTMLForm fields
'SpecialContributionsBeforeMainOutput': Before the form on Special:Contributions
-$id: User identifier
+$id: User id number, only provided for backwards-compatability
+$user: User object representing user contributions are being fetched for
+$sp: SpecialPage instance, providing context
'SpecialListusersDefaultQuery': Called right before the end of
UsersPager::getDefaultQuery().
// Add RSS/atom links
$this->addFeedLinks( array( 'action' => 'feedcontributions', 'user' => $target ) );
- if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array( $id ) ) ) {
+ if ( wfRunHooks( 'SpecialContributionsBeforeMainOutput', array( $id, $userObj, $this ) ) ) {
$out->addHTML( $this->getForm() );
$pager = new ContribsPager( $this->getContext(), array(