http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70559
Revision: 70559 Author: demon Date: 2010-08-06 13:07:46 +0000 (Fri, 06 Aug 2010) Log Message: ----------- (bug 22514) SpecialRecentChangesQuery should also work on Special:RecentChangesLinked. Commented since inception, no reason not to call it here as well. Need this for FlaggedRevs stuff later anyway ;-) Modified Paths: -------------- trunk/phase3/docs/hooks.txt trunk/phase3/includes/specials/SpecialRecentchangeslinked.php Modified: trunk/phase3/docs/hooks.txt =================================================================== --- trunk/phase3/docs/hooks.txt 2010-08-06 12:54:39 UTC (rev 70558) +++ trunk/phase3/docs/hooks.txt 2010-08-06 13:07:46 UTC (rev 70559) @@ -1554,7 +1554,7 @@ $opts: FormOptions for this request 'SpecialRecentChangesQuery': called when building sql query for -SpecialRecentChanges +SpecialRecentChanges and SpecialRecentChangesLinked &$conds: array of WHERE conditionals for query &$tables: array of tables to be queried &$join_conds: join conditions for the tables Modified: trunk/phase3/includes/specials/SpecialRecentchangeslinked.php =================================================================== --- trunk/phase3/includes/specials/SpecialRecentchangeslinked.php 2010-08-06 12:54:39 UTC (rev 70558) +++ trunk/phase3/includes/specials/SpecialRecentchangeslinked.php 2010-08-06 13:07:46 UTC (rev 70559) @@ -109,8 +109,8 @@ $query_options, $opts['tagfilter'] ); } - // XXX: parent class does this, should we too? - // wfRunHooks('SpecialRecentChangesQuery', array( &$conds, &$tables, &$join_conds, $opts ) ); + if ( !wfRunHooks( 'SpecialRecentChangesQuery', array( &$conds, &$tables, &$join_conds, $opts, &$query_options ) ) ) + return false; if( $ns == NS_CATEGORY && !$showlinkedto ) { // special handling for categories _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs