r107570 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107569‎ | r107570 | r107571 >
Date:13:29, 29 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Don't let bots update the transver tag, otherwise the human translators don't see the diff when reviewing
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -433,6 +433,10 @@
434434 * @return bool
435435 */
436436 public static function updateTransverTag( MessageHandle $handle, $revision, $text, User $user ) {
 437+ if ( $user->isAllowed( 'bot' ) ) {
 438+ return false;
 439+ }
 440+
437441 $group = $handle->getGroup();
438442 if ( $group instanceof WikiPageMessageGroup ) {
439443 // WikiPageMessageGroup has different method

Status & tagging log