r24765 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24764‎ | r24765 | r24766 >
Date:01:17, 14 August 2007
Author:robchurch
Status:old
Tags:
Comment:
Tweak confusing comment for User::whoIsReal()
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -311,14 +311,14 @@
312312 }
313313
314314 /**
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
319319 */
320320 static function whoIsReal( $id ) {
321321 $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__ );
323323 }
324324
325325 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r24866Merged revisions 24755-24865 via svnmerge from...david23:08, 16 August 2007

Status & tagging log