Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | } |
17 | 17 | |
18 | 18 | public function execute( $par ) { |
19 | | - global $wgUser, $wgOut, $wgRequest, $wgLang, $wgArticleFeedbackDashboard, $wgArticleFeedbackDashboardTalkPage; |
| 19 | + global $wgOut, $wgLang, $wgArticleFeedbackDashboard, $wgArticleFeedbackDashboardTalkPage; |
20 | 20 | |
21 | 21 | $wgOut->addModules( 'ext.articleFeedback.dashboard' ); |
22 | 22 | $this->setHeaders(); |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | * @return String: HTML table of daily highs and lows |
113 | 113 | */ |
114 | 114 | protected function renderDailyHighsAndLows( $pages, $caption ) { |
115 | | - global $wgOut, $wgUser; |
| 115 | + global $wgUser; |
116 | 116 | |
117 | 117 | // Pre-fill page ID cache |
118 | 118 | $ids = array(); |
— | — | @@ -129,7 +129,7 @@ |
130 | 130 | continue; |
131 | 131 | } |
132 | 132 | $row['page'] = $wgUser->getSkin()->link( $pageTitle, $pageTitle->getPrefixedText() ); |
133 | | - foreach ( $page['ratings'] as $id => $value ) { |
| 133 | + foreach ( $page['ratings'] as $value ) { |
134 | 134 | $row[] = array( |
135 | 135 | 'text' => $this->formatNumber( $value ), |
136 | 136 | 'attr' => array( |
— | — | @@ -167,7 +167,7 @@ |
168 | 168 | * @return String: HTML table of weekly most changed |
169 | 169 | */ |
170 | 170 | protected function renderWeeklyMostChanged() { |
171 | | - global $wgOut, $wgUser; |
| 171 | + global $wgUser; |
172 | 172 | |
173 | 173 | $rows = array(); |
174 | 174 | foreach ( $this->getWeeklyMostChanged() as $page ) { |
— | — | @@ -201,9 +201,8 @@ |
202 | 202 | * @return String: HTML table of recent lows |
203 | 203 | */ |
204 | 204 | protected function renderProblems() { |
205 | | - global $wgOut, $wgUser, $wgArticleFeedbackRatings; |
| 205 | + global $wgUser; |
206 | 206 | |
207 | | - |
208 | 207 | $problems = $this->getProblems(); |
209 | 208 | |
210 | 209 | // Pre-fill page ID cache |
— | — | @@ -221,7 +220,7 @@ |
222 | 221 | continue; |
223 | 222 | } |
224 | 223 | $row['page'] = $wgUser->getSkin()->link( $pageTitle, $pageTitle->getPrefixedText() ); |
225 | | - foreach ( $page['ratings'] as $id => $value ) { |
| 224 | + foreach ( $page['ratings'] as $value ) { |
226 | 225 | $row[] = array( |
227 | 226 | 'text' => $this->formatNumber( $value ), |
228 | 227 | 'attr' => array( |