r36728 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36727‎ | r36728 | r36729 >
Date:12:17, 27 June 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Fail fast
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

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

Status & tagging log