From: Tobias Date: Fri, 19 Feb 2010 10:51:03 +0000 (+0000) Subject: newFromName: Fixing error in the documentation and adding IP address as an example... X-Git-Tag: 1.31.0-rc.0~37701 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=8c56cd8d8dc1c7ad50f8672afadeab4b2f10a7e7;p=lhc%2Fweb%2Fwiklou.git newFromName: Fixing error in the documentation and adding IP address as an example. No code change --- diff --git a/includes/User.php b/includes/User.php index 1273a47b6c..2dea90b320 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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. */