r57063 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57062‎ | r57063 | r57064 >
Date:17:15, 29 September 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Edit as $wgTranslateFuzzyBotName
Modified paths:
  • /trunk/extensions/Translate/SpecialManageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialManageGroups.php
@@ -367,8 +367,9 @@
368368 }
369369
370370 $title = self::makeTitle( $group, $key, $code );
 371+ $fuzzybot = self::getFuzzyBot();
371372
372 - return $this->doImport( $title, $message, $comment );
 373+ return $this->doImport( $title, $message, $comment, $fuzzybot );
373374 } elseif ( $action === 'ignore' ) {
374375 return array( 'translate-manage-import-ignore', $key );
375376 } elseif ( $action === 'fuzzy' && $code != 'en' ) {
@@ -384,7 +385,7 @@
385386 protected function checkProcessTime() {
386387 return wfTimestamp() - $this->time >= $this->processingTime;
387388 }
388 -
 389+
389390 protected function doImport( $title, $message, $comment, $user = null ) {
390391 $flags = EDIT_FORCE_BOT;
391392 $article = new Article( $title );
@@ -451,6 +452,7 @@
452453 );
453454 }
454455
 456+ // FIXME: Duplicate code. See ChangeSyncer::getImportUser() in scripts/sync-group.php
455457 protected static function getFuzzyBot() {
456458 global $wgTranslateFuzzyBotName;
457459

Status & tagging log