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

Change subject: (bug 44210) Use the same user name for posting to all wikis
......................................................................


(bug 44210) Use the same user name for posting to all wikis

Change-Id: I4f8d5131e748f385e8b938b5c98551210d9ff609
---
M TranslationNotificationJob.php
1 file changed, 3 insertions(+), 2 deletions(-)

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



diff --git a/TranslationNotificationJob.php b/TranslationNotificationJob.php
index b8942ae..177b18c 100644
--- a/TranslationNotificationJob.php
+++ b/TranslationNotificationJob.php
@@ -59,13 +59,14 @@
 
                        $text = $textContent . "\n" . $text;
                }
-               $editor = User::newFromID( $this->params['editor'] );
+
+               global $wgNotificationUsername;
                $status = $talkPage->doEditContent(
                        ContentHandler::makeContent( $text, $this->title ),
                        $this->params['editSummary'],
                        $flags,
                        false,
-                       $editor
+                       User::newFromName( $wgNotificationUsername )
                );
 
                return $status->isGood();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4f8d5131e748f385e8b938b5c98551210d9ff609
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TranslationNotifications
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
Gerrit-Reviewer: Santhosh <[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