Index: trunk/extensions/NewUserMessage/NewUserMessage.class.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | $talk = $user->getTalkPage(); |
23 | 23 | |
24 | 24 | if (!$talk->exists()) { |
25 | | - global $wgUser, $wgNewUserMinorEdit, $wgNewUserSuppressRC; |
| 25 | + global $wgUser, $wgNewUserMinorEdit; |
26 | 26 | |
27 | 27 | wfLoadExtensionMessages( 'NewUserMessage' ); |
28 | 28 | |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | $wgUser->addToDatabase(); |
39 | 39 | } |
40 | 40 | |
41 | | - $flags = EDIT_NEW; |
| 41 | + $flags = EDIT_NEW | EDIT_SUPPRESS_RC; |
42 | 42 | $templateTitleText = wfMsg( 'newusermessage-template' ); |
43 | 43 | $templateTitle = Title::newFromText( $templateTitleText ); |
44 | 44 | if ( !$templateTitle ) { |
— | — | @@ -48,7 +48,6 @@ |
49 | 49 | $templateTitleText = $templateTitle->getText(); |
50 | 50 | } |
51 | 51 | if ($wgNewUserMinorEdit) $flags = $flags | EDIT_MINOR; |
52 | | - if ($wgNewUserSuppressRC) $flags = $flags | EDIT_SUPPRESS_RC; |
53 | 52 | |
54 | 53 | $dbw = wfGetDB( DB_MASTER ); |
55 | 54 | $dbw->begin(); |