r29558 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29557‎ | r29558 | r29559 >
Date:21:28, 10 January 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Delay message loading
Modified paths:
  • /trunk/extensions/Newuserlog/Newuserlog.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Newuserlog/Newuserlog.php
@@ -23,9 +23,6 @@
2424 $wgExtensionMessagesFiles['Newuserlog'] = dirname(__FILE__) . '/Newuserlog.i18n.php';
2525
2626 function wfNewuserlog() {
27 - # Add messages
28 - wfLoadExtensionMessages( 'Newuserlog' );
29 -
3027 # Add a new log type
3128 global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions;
3229 $wgLogTypes[] = 'newusers';
@@ -42,6 +39,7 @@
4340
4441 function wfNewuserlogHook( $user = null ) {
4542 global $wgUser, $wgContLang, $wgVersion;
 43+ wfLoadExtensionMessages( 'Newuserlog' );
4644
4745 if( is_null( $user ) ) {
4846 // Compatibility with old versions which didn't pass the parameter

Status & tagging log