Index: trunk/extensions/SocialProfile/UserStats/TopFansRecent.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | * @param $par Mixed: parameter passed to the page or null |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | | - global $wgRequest, $wgUser, $wgOut, $wgMemc, $wgUploadPath, $wgScriptPath; |
| 19 | + global $wgRequest, $wgUser, $wgOut, $wgMemc, $wgScriptPath; |
20 | 20 | |
21 | 21 | // Load CSS |
22 | 22 | $wgOut->addExtensionStyle( $wgScriptPath . '/extensions/SocialProfile/UserStats/TopList.css' ); |
— | — | @@ -120,13 +120,13 @@ |
121 | 121 | foreach ( $user_list as $user ) { |
122 | 122 | $user_title = Title::makeTitle( NS_USER, $user['user_name'] ); |
123 | 123 | $avatar = new wAvatar( $user['user_id'], 'm' ); |
124 | | - $avatarImage = $avatar->getAvatarImage(); |
| 124 | + $avatarImage = $avatar->getAvatarURL(); |
125 | 125 | |
126 | 126 | $out .= '<div class="top-fan-row"> |
127 | 127 | <span class="top-fan-num">' . $x . '.</span> |
128 | | - <span class="top-fan"> |
129 | | - <img src="' . $wgUploadPath . '/avatars/' . $avatarImage . '" alt="" border="" /> |
130 | | - <a href="' . $user_title->escapeFullURL() . '" >' . $user['user_name'] . '</a> |
| 128 | + <span class="top-fan">' . |
| 129 | + $avatarImage . |
| 130 | + '<a href="' . $user_title->escapeFullURL() . '" >' . $user['user_name'] . '</a> |
131 | 131 | </span>'; |
132 | 132 | |
133 | 133 | $out .= '<span class="top-fan-points"><b>' . |
Index: trunk/extensions/SocialProfile/UserStats/TopFansByStat.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | * @param $par Mixed: parameter passed to the page or null |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | | - global $wgRequest, $wgLang, $wgOut, $wgMemc, $wgUploadPath, $wgScriptPath; |
| 19 | + global $wgRequest, $wgLang, $wgOut, $wgMemc, $wgScriptPath; |
20 | 20 | global $wgUserStatsTrackWeekly, $wgUserStatsTrackMonthly; |
21 | 21 | |
22 | 22 | // Load CSS |
— | — | @@ -121,7 +121,7 @@ |
122 | 122 | $user_name = $wgLang->truncate( $user['user_name'], 22 ); |
123 | 123 | $user_title = Title::makeTitle( NS_USER, $user['user_name'] ); |
124 | 124 | $avatar = new wAvatar( $user['user_id'], 'm' ); |
125 | | - $commentIcon = $avatar->getAvatarImage(); |
| 125 | + $commentIcon = $avatar->getAvatarURL(); |
126 | 126 | |
127 | 127 | // Stats row |
128 | 128 | // TODO: opinion_average isn't currently working, so it's not enabled in menus |
— | — | @@ -140,9 +140,9 @@ |
141 | 141 | |
142 | 142 | $out .= '<div class="top-fan-row"> |
143 | 143 | <span class="top-fan-num">' . $x . '.</span> |
144 | | - <span class="top-fan"> |
145 | | - <img src="' . $wgUploadPath . '/avatars/' . $commentIcon . '" alt="" border="" /> |
146 | | - <a href="' . $user_title->escapeFullURL() . '">' . $user_name . '</a> |
| 144 | + <span class="top-fan">' . |
| 145 | + $commentIcon . |
| 146 | + '<a href="' . $user_title->escapeFullURL() . '">' . $user_name . '</a> |
147 | 147 | </span> |
148 | 148 | <span class="top-fan-points"><b>' . $statistics_row . '</b> ' . $lowercase_statistics_name . '</span> |
149 | 149 | <div class="cleared"></div> |
Index: trunk/extensions/SocialProfile/UserStats/TopUsers.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | * @param $par Mixed: parameter passed to the page or null |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | | - global $wgOut, $wgScriptPath, $wgMemc, $wgUserStatsTrackWeekly, $wgUserStatsTrackMonthly, $wgUserLevels, $wgUploadPath; |
| 19 | + global $wgOut, $wgScriptPath, $wgMemc, $wgUserStatsTrackWeekly, $wgUserStatsTrackMonthly, $wgUserLevels; |
20 | 20 | |
21 | 21 | // Load CSS |
22 | 22 | $wgOut->addExtensionStyle( $wgScriptPath . '/extensions/SocialProfile/UserStats/TopList.css' ); |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | foreach ( $user_list as $user ) { |
114 | 114 | $user_title = Title::makeTitle( NS_USER, $user['user_name'] ); |
115 | 115 | $avatar = new wAvatar( $user['user_id'], 'm' ); |
116 | | - $commentIcon = $avatar->getAvatarImage(); |
| 116 | + $commentIcon = $avatar->getAvatarURL(); |
117 | 117 | |
118 | 118 | // Break list into sections based on User Level if it's defined for this site |
119 | 119 | if ( is_array( $wgUserLevels ) ) { |
— | — | @@ -128,7 +128,8 @@ |
129 | 129 | $out .= "<div class=\"top-fan-row\"> |
130 | 130 | <span class=\"top-fan-num\">{$x}.</span> |
131 | 131 | <span class=\"top-fan\"> |
132 | | - <img src='{$wgUploadPath}/avatars/" . $commentIcon . "' alt='' border='' /> <a href='" . $user_title->escapeFullURL() . "'>" . $user['user_name'] . '</a> |
| 132 | + {$commentIcon} <a href='" . $user_title->escapeFullURL() . "'>" . |
| 133 | + $user['user_name'] . '</a> |
133 | 134 | </span>'; |
134 | 135 | |
135 | 136 | $out .= '<span class="top-fan-points"><b>' . number_format( $user['points'] ) . '</b> ' . wfMsg( 'top-fans-points' ) . '</span>'; |