r57337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57336‎ | r57337 | r57338 >
Date:18:23, 3 October 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Add continent header conditionally
Modified paths:
  • /trunk/extensions/Translate/scripts/groupStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/groupStatistics.php
@@ -191,7 +191,9 @@
192192 }
193193 $out->element( 'Code', true );
194194 $out->element( 'Language', true );
195 -$out->element( 'Continent', true );
 195+if( $options['output'] == 'wiki' && isset( $options['continent'] ) ) {
 196+ $out->element( 'Continent', true );
 197+}
196198
197199 if( isset( $options['most'] ) && isset( $options['speakers'] ) ) {
198200 $out->element( 'Speakers', true );
@@ -306,7 +308,7 @@
307309 }
308310
309311 // Fill continent field
310 - if( $options['output'] == 'wiki' && isset( $options['output'] ) ) {
 312+ if( $options['output'] == 'wiki' && isset( $options['continent'] ) ) {
311313 if( $mostSpokenLanguages[$code][4] == 'multiple' ) {
312314 $continent = '';
313315 } else {

Status & tagging log