Index: trunk/extensions/Newuserlog/Newuserlog.php |
— | — | @@ -23,9 +23,6 @@ |
24 | 24 | $wgExtensionMessagesFiles['Newuserlog'] = dirname(__FILE__) . '/Newuserlog.i18n.php'; |
25 | 25 | |
26 | 26 | function wfNewuserlog() { |
27 | | - # Add messages |
28 | | - wfLoadExtensionMessages( 'Newuserlog' ); |
29 | | - |
30 | 27 | # Add a new log type |
31 | 28 | global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions; |
32 | 29 | $wgLogTypes[] = 'newusers'; |
— | — | @@ -42,6 +39,7 @@ |
43 | 40 | |
44 | 41 | function wfNewuserlogHook( $user = null ) { |
45 | 42 | global $wgUser, $wgContLang, $wgVersion; |
| 43 | + wfLoadExtensionMessages( 'Newuserlog' ); |
46 | 44 | |
47 | 45 | if( is_null( $user ) ) { |
48 | 46 | // Compatibility with old versions which didn't pass the parameter |