Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -2555,6 +2555,10 @@ |
2556 | 2556 | $loaded[$extensionName] = array(); |
2557 | 2557 | } |
2558 | 2558 | |
| 2559 | + if ( !isset($wgExtensionMessagesFiles[$extensionName]) ) { |
| 2560 | + throw new MWException( "Messages file for extensions $extensionName is not defined" ); |
| 2561 | + } |
| 2562 | + |
2559 | 2563 | if( !$langcode && !array_key_exists( '*', $loaded[$extensionName] ) ) { |
2560 | 2564 | # Just do en, content language and user language. |
2561 | 2565 | $wgMessageCache->loadMessagesFile( $wgExtensionMessagesFiles[$extensionName], false ); |