Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2342
User.php.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:50 PM
2014-11-21 20:50:54 (UTC+0)
Size
634 B
Referenced Files
None
Subscribers
None
User.php.patch
View Options
Index: includes/User.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/User.php,v
retrieving revision 1.176
diff -u -r1.176 User.php
--- includes/User.php 26 Jul 2005 16:09:00 -0000 1.176
+++ includes/User.php 7 Oct 2005 14:48:38 -0000
@@ -50,7 +50,6 @@
* @static
*/
function newFromName( $name ) {
- $u = new User();
# Force usernames to capital
global $wgContLang;
@@ -71,6 +70,7 @@
return null;
}
+ $u = new User();
$u->setName( $canonicalName );
$u->setId( $u->idFromName( $canonicalName ) );
return $u;
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1918
Default Alt Text
User.php.patch (634 B)
Attached To
Mode
T5642: Premature instantiation of User object
Attached
Detach File
Event Timeline
Log In to Comment