r72512 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72511‎ | r72512 | r72513 >
Date:21:38, 6 September 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Fix PHP Notice: Undefined variable: wgUser
Modified paths:
  • /trunk/extensions/LiquidThreads/api/ApiThreadAction.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php
@@ -401,6 +401,8 @@
402402 'format' => 'json',
403403 );
404404
 405+ global $wgUser;
 406+
405407 if ( $wgUser->isAllowed('bot') ) {
406408 $requestData['bot'] = true;
407409 }

Status & tagging log