Index: trunk/extensions/NewUserMessage/NewUserMessage.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | if (!defined('MEDIAWIKI')) |
14 | 14 | die('Not an entry point.'); |
15 | 15 | |
16 | | -define('NEWUSERMESSAGE_VERSION','1.1.1, 2008-05-13'); |
| 16 | +define('NEWUSERMESSAGE_VERSION','1.1.2, 2008-05-13'); |
17 | 17 | |
18 | 18 | // Specify a template to wrap the new user message within |
19 | 19 | $wgNewUserMessageTemplate = 'MediaWiki:NewUserMessage'; |
— | — | @@ -21,7 +21,10 @@ |
22 | 22 | // this user does not exist, the new user will show up as editing user. |
23 | 23 | $wgNewUserMessageEditor = 'Admin'; |
24 | 24 | |
25 | | -// Sepcify whether or not the new user message creation should show up in recent changes |
| 25 | +// Edit summary for the recent changes entry of a new users message |
| 26 | +$wgNewUserEditSummary = "Adding [[MediaWiki:NewUserMessage|welcome message]] to new user's talk page"; |
| 27 | + |
| 28 | +// Specify whether or not the new user message creation should show up in recent changes |
26 | 29 | $wgNewUserSupressRC = false; |
27 | 30 | |
28 | 31 | // Should the new user message creation be a minor edit? |
— | — | @@ -45,7 +48,7 @@ |
46 | 49 | * Add the template message if the users talk page doesn't already exist |
47 | 50 | */ |
48 | 51 | function wfCreateNewUserMessage($user) { |
49 | | - global $wgNewUserMessageTemplate, $wgNewUserMinorEdit, $wgNewUserSupressRC; |
| 52 | + global $wgNewUserMessageTemplate, $wgNewUserMinorEdit, $wgNewUserSupressRC, $wgNewUserEditSummary; |
50 | 53 | |
51 | 54 | $name = $user->getName(); |
52 | 55 | $talk = $user->getTalkPage(); |
— | — | @@ -70,7 +73,7 @@ |
71 | 74 | if ($wgNewUserMinorEdit) $flags = $flags | EDIT_MINOR; |
72 | 75 | if ($wgNewUserSupressRC) $flags = $flags | EDIT_SUPPRESS_RC; |
73 | 76 | |
74 | | - $article->doEdit('{'.'{'."$wgNewUserMessageTemplate|$name}}", false, $flags); |
| 77 | + $article->doEdit('{'.'{'."$wgNewUserMessageTemplate|$name}}", $wgNewUserEditSummary, $flags); |
75 | 78 | $wgUser = $parkedWgUser; |
76 | 79 | } |
77 | 80 | |