r84991 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84990‎ | r84991 | r84992 >
Date:23:30, 29 March 2011
Author:ashley
Status:deferred
Tags:
Comment:
SocialProfile: use @code and @endcode for extra doc prettiness, as per r83109 (and fix the capitalization of one variable because it was annoying me)
Modified paths:
  • /trunk/extensions/SocialProfile/UserProfile/AvatarClass.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserProfile/AvatarClass.php
@@ -2,8 +2,10 @@
33 /**
44 * wAvatar class - used to display avatars
55 * Example usage:
 6+ * @code
67 * $avatar = new wAvatar( $wgUser->getID(), 'l' );
78 * $wgOut->addHTML( $avatar->getAvatarURL() );
 9+ * @endcode
810 * This would display the current user's largest avatar on the page.
911 *
1012 * @file
@@ -19,8 +21,8 @@
2022 * @param $userid Integer: user's internal ID number
2123 * @param $size String: 's' for small, 'm' for medium, 'ml' for medium-large and 'l' for large
2224 */
23 - function __construct( $userid, $size ) {
24 - $this->user_id = $userid;
 25+ function __construct( $userId, $size ) {
 26+ $this->user_id = $userId;
2527 $this->avatar_size = $size;
2628 }
2729

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83109doxygen can use @code !hashar20:28, 2 March 2011

Status & tagging log