newFromName: Fixing error in the documentation and adding IP address as an example...
authorTobias <churchofemacs@users.mediawiki.org>
Fri, 19 Feb 2010 10:51:03 +0000 (10:51 +0000)
committerTobias <churchofemacs@users.mediawiki.org>
Fri, 19 Feb 2010 10:51:03 +0000 (10:51 +0000)
includes/User.php

index 1273a47..2dea90b 100644 (file)
@@ -345,7 +345,8 @@ class User {
         *    User::getCanonicalName(), except that true is accepted as an alias
         *    for 'valid', for BC.
         *
-        * @return \type{User} The User object, or null if the username is invalid. If the
+        * @return \type{User} The User object, or false if the username is invalid 
+        *    (e.g. if it contains illegal characters or is an IP address). If the
         *    username is not present in the database, the result will be a user object
         *    with a name, zero user ID and default settings.
         */