r95242 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95241‎ | r95242 | r95243 >
Date:20:28, 22 August 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: Live hack TitleBlacklist around the lack of RequestContext in 1.17wmf1
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php
@@ -37,8 +37,9 @@
3838
3939 public function execute() {
4040 # get the current user.
41 - $context = $this->createContext();
42 - $user = $context->getUser();
 41+ //$context = $this->createContext();
 42+ //$user = $context->getUser();
 43+ $user = $GLOBALS['wgUser'];
4344
4445 $params = $this->extractRequestParams();
4546 $action = $params['action'];

Status & tagging log