Make User::newFromName set the user object's ID attribute, so it can
authorEvan Prodromou <evanprodromou@users.mediawiki.org>
Mon, 29 Nov 2004 17:58:28 +0000 (17:58 +0000)
committerEvan Prodromou <evanprodromou@users.mediawiki.org>
Mon, 29 Nov 2004 17:58:28 +0000 (17:58 +0000)
commit2d2d5805bc1120be324bd1927761197e03510719
tree61992d9e777393f0c190997a87c0d4d3b8816547
parentbcc5c346ad4c5b793e65776341995bab0466b97a
Make User::newFromName set the user object's ID attribute, so it can
be used for other methods and lazy loading. Previously, you had to use
the class method idForName and assign its value using setId(). Since
all the code that was using newFromName was doing this, it seems like
client programs want a "real" User returned from newFromName. Replaced
client code that was doing newFromName, idForName, setId with just
newFromName. This doesn't seem to break newFromName's semantics; it
seems intuitive (to me) that the user object returned from newFromName
should be usable as returned.
includes/Article.php
includes/SpecialEmailuser.php
includes/SpecialUserlevels.php
includes/SpecialUserlogin.php
includes/User.php