Amire80 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/56896
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(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TranslationNotifications
refs/changes/96/56896/1
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: newchange
Gerrit-Change-Id: I4f8d5131e748f385e8b938b5c98551210d9ff609
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TranslationNotifications
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits