Index: branches/wmf-deployment/extensions/CentralAuth/SpecialGlobalGroupMembership.php |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
76 | | - function fetchUser( $username ) { |
| 76 | + static function fetchUser( $username ) { |
77 | 77 | global $wgUser, $wgRequest; |
78 | 78 | |
79 | 79 | $knownwiki = $wgRequest->getVal('wpKnownWiki'); |
Index: branches/wmf-deployment/includes/specials/SpecialUserrights.php |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | function saveUserGroups( $username, $reason = '' ) { |
146 | 146 | global $wgRequest, $wgUser, $wgGroupsAddToSelf, $wgGroupsRemoveFromSelf; |
147 | 147 | |
148 | | - $user = $this->fetchUser( $username ); |
| 148 | + $user = self::fetchUser( $username ); |
149 | 149 | if( $user instanceof WikiErrorMsg ) { |
150 | 150 | $wgOut->addWikiMsgArray( $user->getMessageKey(), $user->getMessageArgs() ); |
151 | 151 | return; |
— | — | @@ -250,7 +250,7 @@ |
251 | 251 | function editUserGroupsForm( $username ) { |
252 | 252 | global $wgOut; |
253 | 253 | |
254 | | - $user = $this->fetchUser( $username ); |
| 254 | + $user = self::fetchUser( $username ); |
255 | 255 | if( $user instanceof WikiErrorMsg ) { |
256 | 256 | $wgOut->addWikiMsgArray( $user->getMessageKey(), $user->getMessageArgs() ); |
257 | 257 | return; |