Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/83037


Change subject: Fixed local case for ID => name lookup
......................................................................

Fixed local case for ID => name lookup

Change-Id: I8ba1dc2bd16988c5afbdd5064fef572c1b240a67
---
M backend/MWOAuthUtils.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth 
refs/changes/37/83037/1

diff --git a/backend/MWOAuthUtils.php b/backend/MWOAuthUtils.php
index e168837..d9a5a43 100644
--- a/backend/MWOAuthUtils.php
+++ b/backend/MWOAuthUtils.php
@@ -263,7 +263,7 @@
                        }
                } else {
                        $name = '';
-                       $user = User::newFromName( $userId );
+                       $user = User::newFromId( $userId );
                        if ( !$user->isHidden()
                                || ( $audience instanceof User && 
$audience->isAllowed( 'hideuser' ) )
                        ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/83037
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ba1dc2bd16988c5afbdd5064fef572c1b240a67
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to