Index: trunk/phase3/includes/api/ApiUserrights.php |
— | — | @@ -40,7 +40,8 @@ |
41 | 41 | $params = $this->extractRequestParams(); |
42 | 42 | |
43 | 43 | // User already validated in call to getTokenSalt from Main |
44 | | - $user = $this->mForm->fetchUser( $params['user'] ); |
| 44 | + $form = new UserrightsPage; |
| 45 | + $user = $form->fetchUser( $params['user'] ); |
45 | 46 | |
46 | 47 | $r['user'] = $user->getName(); |
47 | 48 | list( $r['added'], $r['removed'] ) = |
— | — | @@ -107,8 +108,8 @@ |
108 | 109 | $this->dieUsageMsg( array( 'missingparam', 'user' ) ); |
109 | 110 | } |
110 | 111 | |
111 | | - $this->mForm = new UserrightsPage; |
112 | | - $user = $this->mForm->fetchUser( $params['user'] ); |
| 112 | + $form = new UserrightsPage; |
| 113 | + $user = $form->fetchUser( $params['user'] ); |
113 | 114 | if ( $user instanceof WikiErrorMsg ) { |
114 | 115 | $this->dieUsageMsg( array_merge( |
115 | 116 | (array)$user->getMessageKey(), $user->getMessageArgs() ) ); |