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:
b3e4453
)
Patch for 3592: unnecessary instantiation of User
author
Tom Gilder
<tomgilder@users.mediawiki.org>
Thu, 6 Oct 2005 23:16:28 +0000
(23:16 +0000)
committer
Tom Gilder
<tomgilder@users.mediawiki.org>
Thu, 6 Oct 2005 23:16:28 +0000
(23:16 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
dada941
..
2aea2e9
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-50,8
+50,6
@@
class User {
* @static
*/
function newFromName( $name ) {
- $u = new User();
-
# Force usernames to capital
global $wgContLang;
$name = $wgContLang->ucfirst( $name );
@@
-71,6
+69,7
@@
class User {
return null;
}
+ $u = new User();
$u->setName( $canonicalName );
$u->setId( $u->idFromName( $canonicalName ) );
return $u;