Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -862,6 +862,7 @@ |
863 | 863 | &$tags: The list of tags. |
864 | 864 | |
865 | 865 | 'LoadAllMessages': called by MessageCache::loadAllMessages() to load extensions messages |
| 866 | +&$this: The MessageCache object |
866 | 867 | |
867 | 868 | 'LoadExtensionSchemaUpdates': called by maintenance/updaters.inc when upgrading database schema |
868 | 869 | |
Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -787,7 +787,7 @@ |
788 | 788 | # Some extensions will load their messages when you load their class file |
789 | 789 | wfLoadAllExtensions(); |
790 | 790 | # Others will respond to this hook |
791 | | - wfRunHooks( 'LoadAllMessages' ); |
| 791 | + wfRunHooks( 'LoadAllMessages', array( $this ) ); |
792 | 792 | # Some register their messages in $wgExtensionMessagesFiles |
793 | 793 | foreach ( $wgExtensionMessagesFiles as $name => $file ) { |
794 | 794 | wfLoadExtensionMessages( $name, $lang ); |