r72176 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72175‎ | r72176 | r72177 >
Date:23:14, 1 September 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Fix broken r72101. Class needs to be at the top of the file.
Modified paths:
  • /trunk/extensions/Translate/scripts/groupStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/groupStatistics.php
@@ -176,6 +176,24 @@
177177 $optionsWithArgs = array( 'groups', 'output', 'skiplanguages', 'legenddetail', 'legendsummary' );
178178 require( dirname( __FILE__ ) . '/cli.inc' );
179179
 180+/**
 181+ * @todo Needs documentation.
 182+ * @ingroup Stats
 183+ */
 184+class TranslateStatsOutput extends wikiStatsOutput {
 185+ function heading() {
 186+ echo '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%"' . "\n";
 187+ }
 188+
 189+ function summaryheading() {
 190+ echo "\n" . '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;"' . "\n";
 191+ }
 192+
 193+ function addFreeText( $freeText ) {
 194+ echo $freeText;
 195+ }
 196+}
 197+
180198 if ( isset( $options['help'] ) ) {
181199 showUsage();
182200 }
@@ -647,21 +665,3 @@
648666 STDERR( $msg );
649667 exit( 1 );
650668 }
651 -
652 -/**
653 - * @todo Needs documentation.
654 - * @ingroup Stats
655 - */
656 -class TranslateStatsOutput extends wikiStatsOutput {
657 - function heading() {
658 - echo '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%"' . "\n";
659 - }
660 -
661 - function summaryheading() {
662 - echo "\n" . '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;"' . "\n";
663 - }
664 -
665 - function addFreeText( $freeText ) {
666 - echo $freeText;
667 - }
668 -}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72101* update some documentation...siebrand12:30, 1 September 2010

Status & tagging log