Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | return true; |
137 | 137 | } |
138 | 138 | $spPages = array( 'UnreviewedPages', 'PendingChanges', 'ProblemChanges', |
139 | | - 'Watchlist', 'Recentchanges', 'Contributions' ); |
| 139 | + 'Watchlist', 'Recentchanges', 'Contributions', 'Recentchangeslinked' ); |
140 | 140 | foreach ( $spPages as $n => $key ) { |
141 | 141 | if ( $title->isSpecial( $key ) ) { |
142 | 142 | global $wgScriptPath, $wgFlaggedRevsStylePath, $wgFlaggedRevStyleVersion; |
— | — | @@ -1632,9 +1632,13 @@ |
1633 | 1633 | return true; |
1634 | 1634 | } |
1635 | 1635 | |
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 ) { |
1637 | 1637 | $tables[] = 'flaggedpages'; |
1638 | 1638 | $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 | + } |
1639 | 1643 | return true; |
1640 | 1644 | } |
1641 | 1645 | |