dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c4b2ec
)
Code obfuscation (useless $r)
author
Antoine Musso
<hashar@users.mediawiki.org>
Sat, 22 Oct 2005 21:26:11 +0000
(21:26 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Sat, 22 Oct 2005 21:26:11 +0000
(21:26 +0000)
includes/SpecialUserlogin.php
patch
|
blob
|
history
diff --git
a/includes/SpecialUserlogin.php
b/includes/SpecialUserlogin.php
index
2af23ee
..
e922426
100644
(file)
--- a/
includes/SpecialUserlogin.php
+++ b/
includes/SpecialUserlogin.php
@@
-267,9
+267,7
@@
class LoginForm {
global $wgAuth;
$wgAuth->initUser( $u );
- if ( $this->mRemember ) { $r = 1; }
- else { $r = 0; }
- $u->setOption( 'rememberpassword', $r );
+ $u->setOption( 'rememberpassword', $this->mRemember ? 1 : 0 );
return $u;
}