prop=revisions: join user table to get user name
this avoid a lazy load of the user name for each row Change-Id: I5d8983476e03cc2f6dad074577402f5255080838
This commit is contained in:
parent
aefa39ead9
commit
a5e50e8b2f
1 changed files with 7 additions and 0 deletions
|
|
@ -224,6 +224,13 @@ class ApiQueryRevisions extends ApiQueryBase {
|
|||
}
|
||||
}
|
||||
|
||||
// add user name, if needed
|
||||
if ( $this->fld_user ) {
|
||||
$this->addTables( 'user' );
|
||||
$this->addJoinConds( array( 'user' => Revision::userJoinCond() ) );
|
||||
$this->addFields( Revision::selectUserFields() );
|
||||
}
|
||||
|
||||
// Bug 24166 - API error when using rvprop=tags
|
||||
$this->addTables( 'revision' );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue