From 8c56cd8d8dc1c7ad50f8672afadeab4b2f10a7e7 Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 19 Feb 2010 10:51:03 +0000 Subject: [PATCH] newFromName: Fixing error in the documentation and adding IP address as an example. No code change --- includes/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.20.1