Index: trunk/extensions/Gadgets/ApiQueryGadgets.php |
— | — | @@ -39,8 +39,8 @@ |
40 | 40 | $this->neededNames = isset( $params['names'] ) |
41 | 41 | ? array_flip( $params['names'] ) |
42 | 42 | : false; |
43 | | - $this->listAllowed = isset( $params['allowed'] ) && $params['allowed']; |
44 | | - $this->listEnabled = isset( $params['enabled'] ) && $params['enabled']; |
| 43 | + $this->listAllowed = isset( $params['allowedonly'] ) && $params['allowedonly']; |
| 44 | + $this->listEnabled = isset( $params['enabledonly'] ) && $params['enabledonly']; |
45 | 45 | |
46 | 46 | $this->getMain()->setCacheMode( $this->listAllowed || $this->listEnabled |
47 | 47 | ? 'anon-public-user-private' : 'public' ); |
— | — | @@ -152,8 +152,8 @@ |
153 | 153 | ApiBase::PARAM_TYPE => 'string', |
154 | 154 | ApiBase::PARAM_ISMULTI => true, |
155 | 155 | ), |
156 | | - 'allowed' => false, |
157 | | - 'enabled' => false, |
| 156 | + 'allowedonly' => false, |
| 157 | + 'enabledonly' => false, |
158 | 158 | ); |
159 | 159 | } |
160 | 160 | |
— | — | @@ -179,8 +179,8 @@ |
180 | 180 | ), |
181 | 181 | 'categories' => 'Gadgets from what categories to retrieve', |
182 | 182 | 'names' => 'Name(s) of gadgets to retrieve', |
183 | | - 'allowed' => 'List only gadgets allowed to current user', |
184 | | - 'enabled' => 'List only gadgets enabled by current user', |
| 183 | + 'allowedonly' => 'List only gadgets allowed to current user', |
| 184 | + 'enabledonly' => 'List only gadgets enabled by current user', |
185 | 185 | ); |
186 | 186 | } |
187 | 187 | |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | 'Get information about gadgets named "foo" and "bar":', |
199 | 199 | ' api.php?action=query&list=gadgets&ganames=foo|bar&gaprop=name|desc|category', |
200 | 200 | 'Get a list of gadgets enabled by current user:', |
201 | | - ' api.php?action=query&list=gadgets&gaenabled', |
| 201 | + ' api.php?action=query&list=gadgets&gaenabledonly', |
202 | 202 | ); |
203 | 203 | } |
204 | 204 | |