r42036 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42035‎ | r42036 | r42037 >
Date:15:02, 13 October 2008
Author:aaron
Status:old (Comments)
Tags:
Comment:
Comment out accidentally committed code from r42020; didn't mean to commit just yet
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -814,6 +814,7 @@
815815 $this->loadDefaults();
816816 return false;
817817 }
 818+ /*
818819 if ( isset( $_SESSION['wsUserName'] ) && isset( $_COOKIE["{$wgCookiePrefix}UserName"] ) ) {
819820 // Cookie and session username should match
820821 if( $_SESSION['wsUserName'] == $_COOKIE["{$wgCookiePrefix}UserName"] ) {
@@ -822,6 +823,10 @@
823824 $this->loadDefaults();
824825 return false;
825826 }
 827+ }
 828+ */
 829+ if ( isset( $_SESSION['wsUserName'] ) ) {
 830+ $sName = $_SESSION['wsUserName'];
826831 } else if ( isset( $_COOKIE["{$wgCookiePrefix}UserName"] ) ) {
827832 $sName = $_COOKIE["{$wgCookiePrefix}UserName"];
828833 $_SESSION['wsUserName'] = $sName;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r42020Refactor sendToUDP() some moreaaron06:17, 13 October 2008

Comments

#Comment by Voice of All (talk | contribs)   18:51, 13 October 2008

Removed and redone in r42040

Status & tagging log