r40531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40530‎ | r40531 | r40532 >
Date:12:51, 6 September 2008
Author:demon
Status:old
Tags:
Comment:
Syntax error. Consequently, getCookie() returns null if it can't find one, so we can just directly call it here and skip a logic step.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -767,7 +767,7 @@
768768 if ( $wgUser->isLoggedIn() ) {
769769 $this->mName = $wgUser->getName();
770770 } else {
771 - $this->mName = isset( $wgRequest->getCookie('UserName') ) ? $wgRequest->getCookie('UserName') : null;
 771+ $this->mName = $wgRequest->getCookie('UserName');
772772 }
773773 }
774774

Status & tagging log