Index: trunk/phase3/includes/User.php |
— | — | @@ -311,14 +311,14 @@ |
312 | 312 | } |
313 | 313 | |
314 | 314 | /** |
315 | | - * Get real username given an id. |
316 | | - * @param integer $id Database user id |
317 | | - * @return string Realname of a user |
318 | | - * @static |
| 315 | + * Get the real name of a user given their identifier |
| 316 | + * |
| 317 | + * @param int $id Database user id |
| 318 | + * @return string Real name of a user |
319 | 319 | */ |
320 | 320 | static function whoIsReal( $id ) { |
321 | 321 | $dbr = wfGetDB( DB_SLAVE ); |
322 | | - return $dbr->selectField( 'user', 'user_real_name', array( 'user_id' => $id ), 'User::whoIsReal' ); |
| 322 | + return $dbr->selectField( 'user', 'user_real_name', array( 'user_id' => $id ), __METHOD__ ); |
323 | 323 | } |
324 | 324 | |
325 | 325 | /** |