Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -377,7 +377,7 @@ |
378 | 378 | $vals['user'] = $revision->getUserText(); |
379 | 379 | } |
380 | 380 | if ( $this->fld_userid ) { |
381 | | - $user = User::newFromText( $revision->getUserText() ); |
| 381 | + $user = User::newFromName( $revision->getUserText() ); |
382 | 382 | $vals['userid'] = $user->getId(); |
383 | 383 | } |
384 | 384 | if ( !$revision->getUser() ) { |