http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76392
Revision: 76392 Author: ialex Date: 2010-11-09 17:00:35 +0000 (Tue, 09 Nov 2010) Log Message: ----------- * (bug 17789) Added a note to the total views on Special:Statistics saying that is doesn't count non-existing pages and special pages Modified Paths: -------------- trunk/phase3/RELEASE-NOTES trunk/phase3/includes/specials/SpecialStatistics.php trunk/phase3/languages/messages/MessagesEn.php trunk/phase3/maintenance/language/messages.inc Modified: trunk/phase3/RELEASE-NOTES =================================================================== --- trunk/phase3/RELEASE-NOTES 2010-11-09 16:51:08 UTC (rev 76391) +++ trunk/phase3/RELEASE-NOTES 2010-11-09 17:00:35 UTC (rev 76392) @@ -412,6 +412,8 @@ 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. Modified: trunk/phase3/includes/specials/SpecialStatistics.php =================================================================== --- trunk/phase3/includes/specials/SpecialStatistics.php 2010-11-09 16:51:08 UTC (rev 76391) +++ trunk/phase3/includes/specials/SpecialStatistics.php 2010-11-09 17:00:35 UTC (rev 76392) @@ -187,6 +187,7 @@ 'statistics-users-active-desc', $wgLang->formatNum( $wgActiveUserDays ) ); } + private function getGroupStats() { global $wgGroupPermissions, $wgImplicitGroups, $wgLang, $wgUser; $sk = $wgUser->getSkin(); @@ -233,6 +234,7 @@ } return $text; } + private function getViewsStats() { global $wgLang; return Xml::openElement( 'tr' ) . @@ -240,12 +242,13 @@ 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 @@ } return $text; } - + private function getOtherStats( $stats ) { global $wgLang; Modified: trunk/phase3/languages/messages/MessagesEn.php =================================================================== --- trunk/phase3/languages/messages/MessagesEn.php 2010-11-09 16:51:08 UTC (rev 76391) +++ trunk/phase3/languages/messages/MessagesEn.php 2010-11-09 17:00:35 UTC (rev 76392) @@ -2382,6 +2382,7 @@ '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', Modified: trunk/phase3/maintenance/language/messages.inc =================================================================== --- trunk/phase3/maintenance/language/messages.inc 2010-11-09 16:51:08 UTC (rev 76391) +++ trunk/phase3/maintenance/language/messages.inc 2010-11-09 17:00:35 UTC (rev 76392) @@ -1473,6 +1473,7 @@ 'statistics-edits', 'statistics-edits-average', 'statistics-views-total', + 'statistics-views-total-desc' 'statistics-views-peredit', 'statistics-users', 'statistics-users-active', _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs