Index: trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | |
9 | 9 | if (!defined('MEDIAWIKI')) die(); |
10 | 10 | |
11 | | -define('SD_VERSION','0.5.7'); |
| 11 | +define('SD_VERSION','0.5.8'); |
12 | 12 | |
13 | 13 | // constants for special properties |
14 | 14 | define('SD_SP_HAS_FILTER', 1); |
— | — | @@ -136,13 +136,13 @@ |
137 | 137 | include_once( $sdgIP . '/languages/'. $sdLangClass . '.php' ); |
138 | 138 | } |
139 | 139 | |
140 | | - // fallback if language not supported |
141 | | - if ( !class_exists($sdLangClass)) { |
142 | | - global $sdgContLang; |
143 | | - $sdgLang = $sdgContLang; |
144 | | - } else { |
145 | | - $sdgLang = new $sdLangClass(); |
146 | | - } |
| 140 | + // fallback if language not supported |
| 141 | + if ( !class_exists($sdLangClass)) { |
| 142 | + include_once( $sdgIP . '/languages/SD_LanguageEn.php' ); |
| 143 | + $sdLangClass = 'SD_LanguageEn'; |
| 144 | + } |
| 145 | + |
| 146 | + $sdgLang = new $sdLangClass(); |
147 | 147 | } |
148 | 148 | |
149 | 149 | /** |