Index: branches/wmf/1.17wmf1/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php |
— | — | @@ -37,8 +37,9 @@ |
38 | 38 | |
39 | 39 | public function execute() { |
40 | 40 | # get the current user. |
41 | | - $context = $this->createContext(); |
42 | | - $user = $context->getUser(); |
| 41 | + //$context = $this->createContext(); |
| 42 | + //$user = $context->getUser(); |
| 43 | + $user = $GLOBALS['wgUser']; |
43 | 44 | |
44 | 45 | $params = $this->extractRequestParams(); |
45 | 46 | $action = $params['action']; |