From: Chad Horohoe Date: Fri, 6 Aug 2010 13:07:46 +0000 (+0000) Subject: (bug 22514) SpecialRecentChangesQuery should also work on Special:RecentChangesLinked... X-Git-Tag: 1.31.0-rc.0~35671 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=dbb4f71497ed8cd36ffe2f11c48e98fc705dc781;p=lhc%2Fweb%2Fwiklou.git (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 ;-) --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 1073828b28..7f9eddf1f1 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1554,7 +1554,7 @@ SpecialRecentChanges $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 diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index 387679fa19..3ccd914166 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -109,8 +109,8 @@ class SpecialRecentchangeslinked extends SpecialRecentchanges { $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