Index: trunk/extensions/NewUserMessage/NewUserMessage.php |
— | — | @@ -12,24 +12,24 @@ |
13 | 13 | if (!defined('MEDIAWIKI')) |
14 | 14 | die('Not an entry point.'); |
15 | 15 | |
16 | | -define('NEWUSERMESSAGE_VERSION','1.2, 2008-06-04'); |
| 16 | +define('NEWUSERMESSAGE_VERSION','1.2.1, 2008-06-04'); |
17 | 17 | |
18 | 18 | // Specify a template to wrap the new user message within |
19 | 19 | $wgNewUserMessageTemplate = 'MediaWiki:NewUserMessage'; |
20 | 20 | |
21 | | -// Should the new user message creation be a minor edit? |
22 | | -$wgNewUserMinorEdit = true; |
23 | | - |
24 | 21 | // Set the username of the user that makes the edit on user talk pages. If |
25 | 22 | // this user does not exist, the new user will show up as editing user. |
26 | | -// default: $wgNewUserMessageEditor = 'Admin'; |
| 23 | +$wgNewUserMessageEditor = 'Admin'; |
27 | 24 | |
28 | 25 | // Edit summary for the recent changes entry of a new users message |
29 | | -// default: $wgNewUserEditSummary = "Adding [[$wgNewUserMessageTemplate|welcome message]] to new user's talk page"; |
| 26 | +$wgNewUserEditSummary = "Adding [[$wgNewUserMessageTemplate|welcome message]] to new user's talk page"; |
30 | 27 | |
31 | 28 | // Specify whether or not the new user message creation should show up in recent changes |
32 | | -// default: $wgNewUserSupressRC = false; |
| 29 | +$wgNewUserSupressRC = false; |
33 | 30 | |
| 31 | +// Should the new user message creation be a minor edit? |
| 32 | +$wgNewUserMinorEdit = true; |
| 33 | + |
34 | 34 | $dir = dirname(__FILE__) . '/'; |
35 | 35 | $wgExtensionMessagesFiles['NewUserMessage'] = $dir . 'NewUserMessage.i18n.php'; |
36 | 36 | $wgAutoloadClasses['NewUserMessage'] = $dir . 'NewUserMessage.class.php'; |
Index: trunk/extensions/NewUserMessage/NewUserMessage.class.php |
— | — | @@ -40,9 +40,6 @@ |
41 | 41 | $flags = 0; |
42 | 42 | if ($wgNewUserMinorEdit) $flags = $flags | EDIT_MINOR; |
43 | 43 | if ($wgNewUserSupressRC) $flags = $flags | EDIT_SUPPRESS_RC; |
44 | | - if (!$wgNewUserMessageEditor) $wgNewUserMessageEditor = 'Admin'; |
45 | | - if (!$wgNewUserMessageTemplate) $wgNewUserMessageTemplate = 'MediaWiki:NewUserMessage'; |
46 | | - if (!$wgNewUserEditSummary) $wgNewUserEditSummary = "Adding [[$wgNewUserMessageTemplate|welcome message]] to new user's talk page"; |
47 | 44 | |
48 | 45 | $article->doEdit('{'.'{'."$wgNewUserMessageTemplate|$name}}", $wgNewUserEditSummary, $flags); |
49 | 46 | $wgUser = $parkedWgUser; |