r70407 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70406‎ | r70407 | r70408 >
Date:20:05, 3 August 2010
Author:siebrand
Status:ok
Tags:
Comment:
Follow-up r69898: fix Undefined variable: wgCookiePrefix in /ApiLogin.php on line 94
Modified paths:
  • /trunk/phase3/includes/api/ApiLogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiLogin.php
@@ -68,9 +68,12 @@
6969 }
7070
7171 $loginForm = new LoginForm( $req );
 72+
 73+ global $wgCookiePrefix;
 74+
7275 switch ( $authRes = $loginForm->authenticateUserData() ) {
7376 case LoginForm::SUCCESS:
74 - global $wgUser, $wgCookiePrefix;
 77+ global $wgUser;
7578
7679 $wgUser->setOption( 'rememberpassword', 1 );
7780 $wgUser->setCookies();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69898Remove double globals.platonides19:45, 25 July 2010

Status & tagging log