From: Rob Church Date: Tue, 14 Aug 2007 01:17:08 +0000 (+0000) Subject: Tweak confusing comment for User::whoIsReal() X-Git-Tag: 1.31.0-rc.0~51778 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=7f177a5fe906994a437867a2bf593bb33fe2243e;p=lhc%2Fweb%2Fwiklou.git Tweak confusing comment for User::whoIsReal() --- diff --git a/includes/User.php b/includes/User.php index b663cd2ea7..2ecac0873d 100644 --- a/includes/User.php +++ b/includes/User.php @@ -311,14 +311,14 @@ class User { } /** - * Get real username given an id. - * @param integer $id Database user id - * @return string Realname of a user - * @static + * Get the real name of a user given their identifier + * + * @param int $id Database user id + * @return string Real name of a user */ static function whoIsReal( $id ) { $dbr = wfGetDB( DB_SLAVE ); - return $dbr->selectField( 'user', 'user_real_name', array( 'user_id' => $id ), 'User::whoIsReal' ); + return $dbr->selectField( 'user', 'user_real_name', array( 'user_id' => $id ), __METHOD__ ); } /**