Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1473,6 +1473,7 @@ |
1474 | 1474 | 'statistics-edits', |
1475 | 1475 | 'statistics-edits-average', |
1476 | 1476 | 'statistics-views-total', |
| 1477 | + 'statistics-views-total-desc' |
1477 | 1478 | 'statistics-views-peredit', |
1478 | 1479 | 'statistics-users', |
1479 | 1480 | 'statistics-users-active', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -412,6 +412,8 @@ |
413 | 413 | normalised like normal links to special pages |
414 | 414 | * (bug 21364) External links using link= attribute on images now respect |
415 | 415 | $wgExternalLinkTarget |
| 416 | +* (bug 17789) Added a note to the total views on Special:Statistics saying that |
| 417 | + is doesn't count non-existing pages and special pages |
416 | 418 | |
417 | 419 | === API changes in 1.17 === |
418 | 420 | * (bug 22738) Allow filtering by action type on query=logevent. |
Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -187,6 +187,7 @@ |
188 | 188 | 'statistics-users-active-desc', |
189 | 189 | $wgLang->formatNum( $wgActiveUserDays ) ); |
190 | 190 | } |
| 191 | + |
191 | 192 | private function getGroupStats() { |
192 | 193 | global $wgGroupPermissions, $wgImplicitGroups, $wgLang, $wgUser; |
193 | 194 | $sk = $wgUser->getSkin(); |
— | — | @@ -233,6 +234,7 @@ |
234 | 235 | } |
235 | 236 | return $text; |
236 | 237 | } |
| 238 | + |
237 | 239 | private function getViewsStats() { |
238 | 240 | global $wgLang; |
239 | 241 | return Xml::openElement( 'tr' ) . |
— | — | @@ -240,12 +242,13 @@ |
241 | 243 | Xml::closeElement( 'tr' ) . |
242 | 244 | $this->formatRow( wfMsgExt( 'statistics-views-total', array( 'parseinline' ) ), |
243 | 245 | $wgLang->formatNum( $this->views ), |
244 | | - array ( 'class' => 'mw-statistics-views-total' ) ) . |
| 246 | + array ( 'class' => 'mw-statistics-views-total' ), 'statistics-views-total-desc' ) . |
245 | 247 | $this->formatRow( wfMsgExt( 'statistics-views-peredit', array( 'parseinline' ) ), |
246 | 248 | $wgLang->formatNum( sprintf( '%.2f', $this->edits ? |
247 | 249 | $this->views / $this->edits : 0 ) ), |
248 | 250 | array ( 'class' => 'mw-statistics-views-peredit' ) ); |
249 | 251 | } |
| 252 | + |
250 | 253 | private function getMostViewedPages() { |
251 | 254 | global $wgLang, $wgUser; |
252 | 255 | $text = ''; |
— | — | @@ -284,7 +287,7 @@ |
285 | 288 | } |
286 | 289 | return $text; |
287 | 290 | } |
288 | | - |
| 291 | + |
289 | 292 | private function getOtherStats( $stats ) { |
290 | 293 | global $wgLang; |
291 | 294 | |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2382,6 +2382,7 @@ |
2383 | 2383 | 'statistics-edits' => 'Page edits since {{SITENAME}} was set up', |
2384 | 2384 | 'statistics-edits-average' => 'Average edits per page', |
2385 | 2385 | 'statistics-views-total' => 'Views total', |
| 2386 | +'statistics-views-total-desc' => 'Views to non-existing pages and special pages are not included', |
2386 | 2387 | 'statistics-views-peredit' => 'Views per edit', |
2387 | 2388 | 'statistics-users' => 'Registered [[Special:ListUsers|users]]', |
2388 | 2389 | 'statistics-users-active' => 'Active users', |