From: Amir Sarabadani Date: Wed, 14 Nov 2018 21:21:34 +0000 (+0100) Subject: Migrate ApiQueryLogEvents from tag_summary to change_tag X-Git-Tag: 1.34.0-rc.0~3433^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=fdab199e949aeaff887e3716d97fc373f7f129df;p=lhc%2Fweb%2Fwiklou.git Migrate ApiQueryLogEvents from tag_summary to change_tag Bug: T209525 Change-Id: Id81f78fac5e8d26228fc989e4dd5d34489953587 --- diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 3cb55e4169..ba04193b33 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -109,9 +109,7 @@ class ApiQueryLogEvents extends ApiQueryBase { } if ( $this->fld_tags ) { - $this->addTables( 'tag_summary' ); - $this->addJoinConds( [ 'tag_summary' => [ 'LEFT JOIN', 'log_id=ts_log_id' ] ] ); - $this->addFields( 'ts_tags' ); + $this->addFields( [ 'ts_tags' => ChangeTags::makeTagSummarySubquery( 'logging' ) ] ); } if ( !is_null( $params['tag'] ) ) {