Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | * @return String: HTML table of daily highs and lows |
94 | 94 | */ |
95 | 95 | protected function renderDailyHighsAndLows() { |
96 | | - global $wgOut, $wgArticleFeedbackRatings; |
| 96 | + global $wgOut, $wgUser; |
97 | 97 | |
98 | 98 | $rows = array(); |
99 | 99 | $pages = $this->getDailyHighsAndLows(); |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | foreach ( $pages as $page ) { |
102 | 102 | $row = array(); |
103 | 103 | $pageTitle = Title::newFromId( $page['page'] ); |
104 | | - $row['page'] = Linker::link( $pageTitle, $pageTitle->getPrefixedText() ); |
| 104 | + $row['page'] = $wgUser->getSkin()->link( $pageTitle, $pageTitle->getPrefixedText() ); |
105 | 105 | foreach ( $page['ratings'] as $id => $value ) { |
106 | 106 | $row[] = array( |
107 | 107 | 'text' => round( $value, 2 ), |
— | — | @@ -138,13 +138,13 @@ |
139 | 139 | * @return String: HTML table of weekly most changed |
140 | 140 | */ |
141 | 141 | protected function renderWeeklyMostChanged() { |
142 | | - global $wgOut; |
| 142 | + global $wgOut, $wgUser; |
143 | 143 | |
144 | 144 | $rows = array(); |
145 | 145 | foreach ( $this->getWeeklyMostChanged() as $page ) { |
146 | 146 | $row = array(); |
147 | 147 | $pageTitle = Title::newFromText( $page['page'] ); |
148 | | - $row['page'] = Linker::link( $pageTitle, $pageTitle->getPrefixedText() ); |
| 148 | + $row['page'] = $wgUser->getSkin()->link( $pageTitle, $pageTitle->getPrefixedText() ); |
149 | 149 | foreach ( $page['changes'] as $id => $value ) { |
150 | 150 | $row[] = array( |
151 | 151 | 'text' => round( $value, 2 ), |