From: Sam Reed Date: Wed, 6 Oct 2010 21:16:28 +0000 (+0000) Subject: Followup r71831, User::newFromName, not newFromText X-Git-Tag: 1.31.0-rc.0~34599 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=56f6d2975fa55fcc62f0d4c50cfc9b580c51657c;p=lhc%2Fweb%2Fwiklou.git Followup r71831, User::newFromName, not newFromText --- diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 6a3b0a740a..a8f83a2e22 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -377,7 +377,7 @@ class ApiQueryRevisions extends ApiQueryBase { $vals['user'] = $revision->getUserText(); } if ( $this->fld_userid ) { - $user = User::newFromText( $revision->getUserText() ); + $user = User::newFromName( $revision->getUserText() ); $vals['userid'] = $user->getId(); } if ( !$revision->getUser() ) {