$unpatrolled: Whether or not we are showing unpatrolled changes.
$watched: Whether or not the change is watched by the user.
+'ContribsPager::getQueryInfo': Before the contributions query is about to run
+&$this: Pager object for contributions
+&queryInfo: The query for the contribs Pager
+
+
'ContributionsToolLinks': Change tool links above Special:Contributions
$id: User identifier
$title: User page title
'UploadComplete': Upon completion of a file upload
$uploadForm: Upload form object. File can be accessed by $uploadForm->mLocalFile.
+'ContributionsLineEnding': Called before a contributions HTML line is finished
+$this: SpecialPage object for contributions
+$ret: the HTML line
+$row: the DB row for this line
+
'UserArrayFromResult': called when creating an UserArray object from a database result
&$userArray: set this to an object to override the default object returned
$res: database result used to create the object
function getQueryInfo() {
list( $index, $userCond ) = $this->getUserCond();
$conds = array_merge( array('page_id=rev_page'), $userCond, $this->getNamespaceCond() );
- return array(
+ $queryInfo = array(
'tables' => array( 'page', 'revision' ),
'fields' => array(
'page_namespace', 'page_title', 'page_is_new', 'page_latest', 'rev_id', 'rev_page',
'rev_user_text', 'rev_parent_id', 'rev_deleted'
),
'conds' => $conds,
- 'options' => array( 'USE INDEX' => $index )
+ 'options' => array( 'USE INDEX' => array('revision' => $index) )
);
+ wfRunHooks( 'ContribsPager::getQueryInfo', array( &$this, &$queryInfo ) );
+ return $queryInfo;
}
function getUserCond() {
if( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
$ret .= ' ' . wfMsgHtml( 'deletedrev' );
}
+ // Let extensions add data
+ wfRunHooks( 'ContributionsLineEnding', array( &$this, &$ret, $row ) );
+
$ret = "<li>$ret</li>\n";
wfProfileOut( __METHOD__ );
return $ret;