r69507 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69506‎ | r69507 | r69508 >
Date:13:22, 18 July 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Removed hard coded instance of qqq
Modified paths:
  • /trunk/extensions/Translate/ffs/WikiExtension.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/WikiExtension.php
@@ -123,15 +123,17 @@
124124 }
125125
126126 protected function doExport( $handle, $languages ) {
 127+ global $wgTranslateDocumentationLanguageCode;
 128+
127129 $this->_load();
128130 $this->_makeHeader( $handle );
129131
130132 $this->exportSection( $handle, 'en', $languages );
131 - $this->exportSection( $handle, 'qqq', $languages );
 133+ $this->exportSection( $handle, $wgTranslateDocumentationLanguageCode, $languages );
132134
133135 $__languages = Language::getLanguageNames( false );
134136 foreach ( array_keys( $__languages ) as $code ) {
135 - if ( $code === 'en' || $code === 'qqq' ) {
 137+ if ( $code === 'en' || $code === $wgTranslateDocumentationLanguageCode ) {
136138 continue;
137139 }
138140

Status & tagging log