r71971 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71970‎ | r71971 | r71972 >
Date:19:08, 30 August 2010
Author:demon
Status:deferred
Tags:
Comment:
(bug 23916) Pending changes in related changes
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -135,7 +135,7 @@
136136 return true;
137137 }
138138 $spPages = array( 'UnreviewedPages', 'PendingChanges', 'ProblemChanges',
139 - 'Watchlist', 'Recentchanges', 'Contributions' );
 139+ 'Watchlist', 'Recentchanges', 'Contributions', 'Recentchangeslinked' );
140140 foreach ( $spPages as $n => $key ) {
141141 if ( $title->isSpecial( $key ) ) {
142142 global $wgScriptPath, $wgFlaggedRevsStylePath, $wgFlaggedRevStyleVersion;
@@ -1632,9 +1632,13 @@
16331633 return true;
16341634 }
16351635
1636 - public static function addToRCQuery( &$conds, array &$tables, array &$join_conds, $opts ) {
 1636+ public static function addToRCQuery( &$conds, array &$tables, array &$join_conds, $opts, &$query_opts, &$select ) {
16371637 $tables[] = 'flaggedpages';
16381638 $join_conds['flaggedpages'] = array( 'LEFT JOIN', 'fp_page_id = rc_cur_id' );
 1639+ if( is_array( $select ) ) {
 1640+ $dbr = wfGetDB( DB_SLAVE );
 1641+ $select[] = $dbr->tableName( 'flaggedpages' ) . '.*';
 1642+ }
16391643 return true;
16401644 }
16411645

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r71970Tweak SpecialRecentChangesQuery hook. Need to be able to modify selected fiel...demon19:07, 30 August 2010

Status & tagging log