* (bug 17789) Added a note to the total views on Special:Statistics saying that is...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Nov 2010 17:00:35 +0000 (17:00 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Nov 2010 17:00:35 +0000 (17:00 +0000)
RELEASE-NOTES
includes/specials/SpecialStatistics.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 43c50c1..c68b843 100644 (file)
@@ -412,6 +412,8 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
   normalised like normal links to special pages
 * (bug 21364) External links using link= attribute on images now respect
   $wgExternalLinkTarget
+* (bug 17789) Added a note to the total views on Special:Statistics saying that
+  is doesn't count non-existing pages and special pages
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index 5f2fb1f..b0d0246 100644 (file)
@@ -187,6 +187,7 @@ class SpecialStatistics extends SpecialPage {
                                                'statistics-users-active-desc',
                                                $wgLang->formatNum( $wgActiveUserDays ) );
        }
+
        private function getGroupStats() {
                global $wgGroupPermissions, $wgImplicitGroups, $wgLang, $wgUser;
                $sk = $wgUser->getSkin();
@@ -233,6 +234,7 @@ class SpecialStatistics extends SpecialPage {
                }
                return $text;
        }
+
        private function getViewsStats() {
                global $wgLang;
                return Xml::openElement( 'tr' ) .
@@ -240,12 +242,13 @@ class SpecialStatistics extends SpecialPage {
                        Xml::closeElement( 'tr' ) .
                                $this->formatRow( wfMsgExt( 'statistics-views-total', array( 'parseinline' ) ),
                                        $wgLang->formatNum( $this->views ),
-                                               array ( 'class' => 'mw-statistics-views-total' ) ) .
+                                               array ( 'class' => 'mw-statistics-views-total' ), 'statistics-views-total-desc' ) .
                                $this->formatRow( wfMsgExt( 'statistics-views-peredit', array( 'parseinline' ) ),
                                        $wgLang->formatNum( sprintf( '%.2f', $this->edits ? 
                                                $this->views / $this->edits : 0 ) ),
                                                array ( 'class' => 'mw-statistics-views-peredit' ) );
        }
+
        private function getMostViewedPages() {
                global $wgLang, $wgUser;
                $text = '';
@@ -284,7 +287,7 @@ class SpecialStatistics extends SpecialPage {
                        }
                return $text;
        }
-       
+
        private function getOtherStats( $stats ) {
                global $wgLang;
 
index f3361da..72fb2af 100644 (file)
@@ -2382,6 +2382,7 @@ Remember to check for other links to the templates before deleting them.',
 'statistics-edits'             => 'Page edits since {{SITENAME}} was set up',
 'statistics-edits-average'     => 'Average edits per page',
 'statistics-views-total'       => 'Views total',
+'statistics-views-total-desc'  => 'Views to non-existing pages and special pages are not included',
 'statistics-views-peredit'     => 'Views per edit',
 'statistics-users'             => 'Registered [[Special:ListUsers|users]]',
 'statistics-users-active'      => 'Active users',
index ce0405e..8ee02dd 100644 (file)
@@ -1473,6 +1473,7 @@ $wgMessageStructure = array(
                'statistics-edits',
                'statistics-edits-average',
                'statistics-views-total',
+               'statistics-views-total-desc'
                'statistics-views-peredit',
                'statistics-users',
                'statistics-users-active',