r70011 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70010‎ | r70011 | r70012 >
Date:13:07, 27 July 2010
Author:platonides
Status:ok
Tags:
Comment:
Do not complain that the main namespace is not translated to other languages.
Modified paths:
  • /trunk/phase3/maintenance/language/languages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/languages.inc
@@ -547,7 +547,9 @@
548548 public function getUntranslatedNamespaces( $code ) {
549549 $this->loadFile( 'en' );
550550 $this->loadFile( $code );
551 - return array_flip( array_diff_key( $this->mNamespaceNames['en'], $this->mNamespaceNames[$code] ) );
 551+ $namespacesDiff = array_diff_key( $this->mNamespaceNames['en'], $this->mNamespaceNames[$code] );
 552+ if ( isset( $namespacesDiff[NS_MAIN] ) ) unset( $namespacesDiff[NS_MAIN] );
 553+ return $namespacesDiff;
552554 }
553555
554556 /**

Status & tagging log