Index: trunk/extensions/Newuserlog/Newuserlog.php |
— | — | @@ -21,13 +21,11 @@ |
22 | 22 | function wfNewuserlog() { |
23 | 23 | global $wgMessageCache, $wgHooks, $wgContLang; |
24 | 24 | |
25 | | - $talk = $wgContLang->getFormattedNsText( NS_TALK ); |
26 | | - |
27 | 25 | $wgMessageCache->addMessages( |
28 | 26 | array( |
29 | 27 | 'newuserlogpage' => 'User creation log', |
30 | 28 | 'newuserlogpagetext' => 'This is a log of recent user creations', |
31 | | - 'newuserloglog' => 'Created the user "[[User:$1|$1]]" ([[User talk:$1|' . $talk . ']]; [[Special:Contributions/$1|Contributions]])' |
| 29 | + 'newuserloglog' => "Created the user [[User:$1|$1]] ([[User talk:$1|$2]] | [[Special:Contributions/$1|$3]])" |
32 | 30 | ) |
33 | 31 | ); |
34 | 32 | |
— | — | @@ -41,10 +39,13 @@ |
42 | 40 | } |
43 | 41 | |
44 | 42 | function wfNewuserlogHook() { |
45 | | - global $wgUser, $wgTitle; |
| 43 | + global $wgUser, $wgTitle, $wgContLang; |
| 44 | + |
| 45 | + $talk = $wgContLang->getFormattedNsText( NS_TALK ); |
| 46 | + $contribs = wfMsgForContent( 'contribslink' ); |
46 | 47 | |
47 | 48 | $log = new LogPage( 'newusers' ); |
48 | | - $log->addEntry( 'newusers', $wgTitle, wfMsg( 'newuserloglog', $wgUser->getName() ) ); |
| 49 | + $log->addEntry( 'newusers', $wgTitle, wfMsgForContent( 'newuserloglog', $wgUser->getName(), $talk, $contribs ) ); |
49 | 50 | |
50 | 51 | return true; |
51 | 52 | } |