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 @@
768
768
if ( $wgUser->isLoggedIn() ) {
769
769
$this->mName = $wgUser->getName();
770
770
} else {
771
- $this->mName = isset( $wgRequest->getCookie('UserName') ) ? $wgRequest->getCookie('UserName') : null;
771
+ $this->mName = $wgRequest->getCookie('UserName');
772
772
}
773
773
}
774
774
Status & tagging log
15:31, 12 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r40531
[
removed:
deferred
added:
old]
13:41, 1 October 2010
😂
(
talk
|
contribs
)
changed the
status
of r40531
[
removed:
new
added:
deferred]