Index: trunk/extensions/SocialProfile/UserProfile/AvatarClass.php |
— | — | @@ -2,8 +2,10 @@ |
3 | 3 | /** |
4 | 4 | * wAvatar class - used to display avatars |
5 | 5 | * Example usage: |
| 6 | + * @code |
6 | 7 | * $avatar = new wAvatar( $wgUser->getID(), 'l' ); |
7 | 8 | * $wgOut->addHTML( $avatar->getAvatarURL() ); |
| 9 | + * @endcode |
8 | 10 | * This would display the current user's largest avatar on the page. |
9 | 11 | * |
10 | 12 | * @file |
— | — | @@ -19,8 +21,8 @@ |
20 | 22 | * @param $userid Integer: user's internal ID number |
21 | 23 | * @param $size String: 's' for small, 'm' for medium, 'ml' for medium-large and 'l' for large |
22 | 24 | */ |
23 | | - function __construct( $userid, $size ) { |
24 | | - $this->user_id = $userid; |
| 25 | + function __construct( $userId, $size ) { |
| 26 | + $this->user_id = $userId; |
25 | 27 | $this->avatar_size = $size; |
26 | 28 | } |
27 | 29 | |