r73920 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73919‎ | r73920 | r73921 >
Date:17:20, 28 September 2010
Author:siebrand
Status:deferred
Tags:
Comment:
FIx bug in r73873. Should be 'or' instead of 'and'
Modified paths:
  • /trunk/extensions/Translate/scripts/export.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/export.php
@@ -134,8 +134,8 @@
135135 }
136136
137137 foreach ( $langs as $lang ) {
138 - // Do not export if language code is to be skipped.
139 - if( in_array( $lang, $skip ) && !$group->isValidLanguage( $lang ) ) {
 138+ // Do not export if language code is to be skipped or is not a valid language.
 139+ if( in_array( $lang, $skip ) || !$group->isValidLanguage( $lang ) ) {
140140 continue;
141141 }
142142

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73873Quickfix for not exporting invalid language codesnikerabbit07:39, 28 September 2010

Status & tagging log