Index: trunk/extensions/Newuserlog/Newuserlog.php |
— | — | @@ -37,9 +37,6 @@ |
38 | 38 | # Run this hook on Special:Log |
39 | 39 | $wgHooks['LogLine'][] = 'wfNewuserlogLogLine'; |
40 | 40 | |
41 | | -# Run this hook on Special:Log |
42 | | -$wgHooks['LogLine'][] = 'wfNewuserlogLogLine'; |
43 | | - |
44 | 41 | function wfNewuserlogHook( $user = null, $byEmail = false ) { |
45 | 42 | global $wgUser, $wgContLang, $wgVersion; |
46 | 43 | |
— | — | @@ -47,6 +44,7 @@ |
48 | 45 | // Compatibility with old versions which didn't pass the parameter |
49 | 46 | $user = $wgUser; |
50 | 47 | } |
| 48 | + wfLoadExtensionMessages( 'Newuserlog' ); |
51 | 49 | |
52 | 50 | $talk = $wgContLang->getFormattedNsText( NS_TALK ); |
53 | 51 | |
— | — | @@ -57,7 +55,6 @@ |
58 | 56 | // Links not necessary for self-creations, they will appear already in |
59 | 57 | // recentchanges and special:log view for the creating user. |
60 | 58 | |
61 | | - wfLoadExtensionMessages( 'Newuserlog' ); |
62 | 59 | $contribs = wfMsgForContent( 'contribslink' ); |
63 | 60 | $block = wfMsgForContent( 'blocklink' ); |
64 | 61 | $action = 'create2'; |
— | — | @@ -71,6 +68,7 @@ |
72 | 69 | } |
73 | 70 | |
74 | 71 | function wfNewuserlogAutoCreate( $user ) { |
| 72 | + wfLoadExtensionMessages( 'Newuserlog' ); |
75 | 73 | $log = new LogPage( 'newusers' ); |
76 | 74 | $log->addEntry( 'autocreate', $user->getUserPage(), '', array( $user->getId() ) ); |
77 | 75 | return true; |