r40421 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40420‎ | r40421 | r40422 >
Date:06:54, 4 September 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Corrected language class names. (bug 15378)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php
@@ -564,10 +564,10 @@
565565 if (!empty($smwgContLang)) { return; }
566566 wfProfileIn('smwfInitContentLanguage (SMW)');
567567
 568+ $smwContLangFile = 'SMW_Language' . str_replace( '-', '_', ucfirst( $langcode ) );
568569 $smwContLangClass = 'SMWLanguage' . str_replace( '-', '_', ucfirst( $langcode ) );
569 -
570 - if (file_exists($smwgIP . '/languages/'. $smwContLangClass . '.php')) {
571 - include_once( $smwgIP . '/languages/'. $smwContLangClass . '.php' );
 570+ if (file_exists($smwgIP . '/languages/'. $smwContLangFile . '.php')) {
 571+ include_once( $smwgIP . '/languages/'. $smwContLangFile . '.php' );
572572 }
573573
574574 // fallback if language not supported

Status & tagging log