r50317 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50316‎ | r50317 | r50318 >
Date:18:49, 7 May 2009
Author:demon
Status:ok
Tags:
Comment:
Add $this as a parameter to LoadAllMessages.
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/MessageCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -862,6 +862,7 @@
863863 &$tags: The list of tags.
864864
865865 'LoadAllMessages': called by MessageCache::loadAllMessages() to load extensions messages
 866+&$this: The MessageCache object
866867
867868 'LoadExtensionSchemaUpdates': called by maintenance/updaters.inc when upgrading database schema
868869
Index: trunk/phase3/includes/MessageCache.php
@@ -787,7 +787,7 @@
788788 # Some extensions will load their messages when you load their class file
789789 wfLoadAllExtensions();
790790 # Others will respond to this hook
791 - wfRunHooks( 'LoadAllMessages' );
 791+ wfRunHooks( 'LoadAllMessages', array( $this ) );
792792 # Some register their messages in $wgExtensionMessagesFiles
793793 foreach ( $wgExtensionMessagesFiles as $name => $file ) {
794794 wfLoadExtensionMessages( $name, $lang );

Status & tagging log