r60412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60411‎ | r60412 | r60413 >
Date:15:11, 26 December 2009
Author:ialex
Status:ok
Tags:
Comment:
removed --output=metawiki from maintenance/language/transstat.php; we don't use http://meta.wikimedia.org/wiki/Localization_statistics since ages
Modified paths:
  • /trunk/phase3/maintenance/language/StatOutputs.php (modified) (history)
  • /trunk/phase3/maintenance/language/transstat.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/StatOutputs.php
@@ -72,18 +72,6 @@
7373 }
7474 }
7575
76 -/** Outputs WikiText and appends category and text only used for Meta-Wiki */
77 -class metawikiStatsOutput extends wikiStatsOutput {
78 - function heading() {
79 - echo "See [[MediaWiki localisation]] to learn how you can help translating MediaWiki.\n\n";
80 - parent::heading();
81 - }
82 - function footer() {
83 - parent::footer();
84 - echo "\n[[Category:Localisation|Statistics]]\n";
85 - }
86 -}
87 -
8876 /** Output text. To be used on a terminal for example. */
8977 class textStatsOutput extends statsOutput {
9078 function element( $in, $heading = false ) {
Index: trunk/phase3/maintenance/language/transstat.php
@@ -35,7 +35,6 @@
3636 --output : select an output engine one of:
3737 * 'csv' : Comma Separated Values.
3838 * 'wiki' : MediaWiki syntax (default).
39 - * 'metawiki' : MediaWiki syntax used for Meta-Wiki.
4039 * 'text' : Text with tabs.
4140 Example: php maintenance/transstat.php --output=text
4241
@@ -50,9 +49,6 @@
5150 case 'wiki':
5251 $output = new wikiStatsOutput();
5352 break;
54 - case 'metawiki':
55 - $output = new metawikiStatsOutput();
56 - break;
5753 case 'text':
5854 $output = new textStatsOutput();
5955 break;

Follow-up revisions

RevisionCommit summaryAuthorDate
r60413Follow-up r60412: forgot to remove the class from AutoLoaderialex16:51, 26 December 2009
r63363Follow-up r60412: also remove --output=metawiki in groupStatistics.phpialex17:02, 7 March 2010

Status & tagging log