dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6e96a6e
)
Merge "prop=revisions: join user table to get user name"
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 16 May 2012 22:20:49 +0000
(22:20 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 16 May 2012 22:20:49 +0000
(22:20 +0000)
includes/api/ApiQueryRevisions.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryRevisions.php
b/includes/api/ApiQueryRevisions.php
index
7390546
..
426de6c
100644
(file)
--- a/
includes/api/ApiQueryRevisions.php
+++ b/
includes/api/ApiQueryRevisions.php
@@
-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' );