(bug 22514) SpecialRecentChangesQuery should also work on Special:RecentChangesLinked...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 6 Aug 2010 13:07:46 +0000 (13:07 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 6 Aug 2010 13:07:46 +0000 (13:07 +0000)
docs/hooks.txt
includes/specials/SpecialRecentchangeslinked.php

index 1073828..7f9eddf 100644 (file)
@@ -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
index 387679f..3ccd914 100644 (file)
@@ -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