From dbb4f71497ed8cd36ffe2f11c48e98fc705dc781 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 6 Aug 2010 13:07:46 +0000 Subject: [PATCH] (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 ;-) --- docs/hooks.txt | 2 +- includes/specials/SpecialRecentchangeslinked.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1