X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiQueryDeletedrevs.php;h=856653e7b5f71ed9947457ea4130881744783c8e;hb=c91cc078bf24407abfb1a8702508c3df69d4785a;hp=e84b9b22471562b68dbd24c60d6574563a8a853b;hpb=32521781126023e45e6eb7597245aeb49a13c6b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index e84b9b2247..856653e7b5 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -133,11 +133,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase { } if ( $fld_tags ) { - $this->addTables( 'tag_summary' ); - $this->addJoinConds( - [ 'tag_summary' => [ 'LEFT JOIN', [ 'ar_rev_id=ts_rev_id' ] ] ] - ); - $this->addFields( 'ts_tags' ); + $this->addFields( [ 'ts_tags' => ChangeTags::makeTagSummarySubquery( 'archive' ) ] ); } if ( !is_null( $params['tag'] ) ) {