X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchangeslinked.php;h=6c617cdd9f645b254f9e68930b5bf81d582573a4;hb=08fee4ce2f1bbf362c8422a3e306a905c8775094;hp=e73cabce79964a7a3a3bf2279bdc1f0d1a6411ce;hpb=7b488f64ee6f0ed3ce1c5ede62c25e756a8840e0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index e73cabce79..6c617cdd9f 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -109,9 +109,8 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $opts['tagfilter'] ); - if ( !wfRunHooks( 'SpecialRecentChangesQuery', - array( &$conds, &$tables, &$join_conds, $opts, &$query_options, &$select ), - '1.23' ) + if ( !$this->runMainQueryHook( $conds, $tables, $join_conds, $opts, $query_options, + $select ) ) { return false; } @@ -221,6 +220,15 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { return $res; } + protected function runMainQueryHook( &$tables, &$select, &$conds, &$query_options, &$join_conds, $opts ) { + return parent::runMainQueryHook( $tables, $select, $conds, $query_options, $join_conds, $opts ) + && wfRunHooks( + 'SpecialRecentChangesQuery', + array( &$conds, &$tables, &$join_conds, $opts, &$query_options, &$select ), + '1.23' + ); + } + function setTopText( FormOptions $opts ) { $target = $this->getTargetTitle(); if ( $target ) {