r25753 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25752‎ | r25753 | r25754 >
Date:22:53, 10 September 2007
Author:rotem
Status:old
Tags:
Comment:
If no messages are specified in the extension file, don't load them.
Modified paths:
  • /trunk/phase3/includes/MessageCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/MessageCache.php
@@ -695,14 +695,16 @@
696696 * Load messages from a given file
697697 */
698698 function loadMessagesFile( $filename ) {
699 - $magicWords = false;
 699+ $messages = $magicWords = false;
700700 require( $filename );
701 - $this->addMessagesByLang( $messages );
702701
 702+ if ( $messages !== false ) {
 703+ $this->addMessagesByLang( $messages );
 704+ }
 705+
703706 if ( $magicWords !== false ) {
704707 global $wgContLang;
705708 $wgContLang->addMagicWordsByLang( $magicWords );
706709 }
707710 }
708711 }
709 -

Follow-up revisions

RevisionCommit summaryAuthorDate
r25804Merged revisions 25752-25803 via svnmerge from...david02:25, 12 September 2007

Status & tagging log