jenkins-bot has submitted this change and it was merged.

Change subject: Add links for the user once the special page has been submitted
......................................................................


Add links for the user once the special page has been submitted

Bug: 54253
Change-Id: I7c84d50c27fefc8b09bfef3c1261f0b180574b53
---
M MassMessage.i18n.php
M SpecialMassMessage.php
2 files changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/MassMessage.i18n.php b/MassMessage.i18n.php
index 4e55701..006f0ae 100644
--- a/MassMessage.i18n.php
+++ b/MassMessage.i18n.php
@@ -45,6 +45,7 @@
        'logentry-massmessage-skipnouser' => 'Delivery of "$4" to $3 was 
skipped because user account does not exist',
        'massmessage-cannot-rename' => 'This is a system account and cannot be 
renamed.',
        'massmessage-message-footer' => '',
+       'massmessage-nextsteps' => '[[Special:MassMessage|Send another 
message]] or [[Special:Statistics|view how many messages are queued]].',
 );
 
 /** Message documentation (Message documentation)
@@ -116,6 +117,7 @@
 * $4 - the subject line of the message',
        'massmessage-cannot-rename' => 'Error message a user sees when they try 
renaming the bot account.',
        'massmessage-message-footer' => 'The footer that is by added at the end 
of very message. It is left blank so individual wikis can customize it.',
+       'massmessage-nextsteps' => 'Message after 
{{mw-msg|massmessage-submitted}} on the special page once the form has been 
submitted. ',
 );
 
 /** Bengali (বাংলা)
diff --git a/SpecialMassMessage.php b/SpecialMassMessage.php
index 5154cd5..ed95c25 100644
--- a/SpecialMassMessage.php
+++ b/SpecialMassMessage.php
@@ -71,7 +71,8 @@
                if ( $result === true || ( $result instanceof Status && 
$result->isGood() ) ) {
                        if ( $this->state == 'submit' ) { // If it's preview, 
everything is shown already.
                                $msg = $this->msg( 'massmessage-submitted' 
)->params( $this->count )->plain();
-                               $this->getOutput()->addWikiText( $msg );
+                               $output->addWikiText( $msg );
+                               $output->addWikiMsg( 'massmessage-nextsteps' );
                        }
                } else {
                        $form->displayForm( $result );

-- 
To view, visit https://gerrit.wikimedia.org/r/86999
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7c84d50c27fefc8b09bfef3c1261f0b180574b53
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/MassMessage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: MZMcBride <[email protected]>
Gerrit-Reviewer: Raimond Spekking <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to