Index: trunk/extensions/Translate/SpecialManageGroups.php |
— | — | @@ -367,8 +367,9 @@ |
368 | 368 | } |
369 | 369 | |
370 | 370 | $title = self::makeTitle( $group, $key, $code ); |
| 371 | + $fuzzybot = self::getFuzzyBot(); |
371 | 372 | |
372 | | - return $this->doImport( $title, $message, $comment ); |
| 373 | + return $this->doImport( $title, $message, $comment, $fuzzybot ); |
373 | 374 | } elseif ( $action === 'ignore' ) { |
374 | 375 | return array( 'translate-manage-import-ignore', $key ); |
375 | 376 | } elseif ( $action === 'fuzzy' && $code != 'en' ) { |
— | — | @@ -384,7 +385,7 @@ |
385 | 386 | protected function checkProcessTime() { |
386 | 387 | return wfTimestamp() - $this->time >= $this->processingTime; |
387 | 388 | } |
388 | | - |
| 389 | + |
389 | 390 | protected function doImport( $title, $message, $comment, $user = null ) { |
390 | 391 | $flags = EDIT_FORCE_BOT; |
391 | 392 | $article = new Article( $title ); |
— | — | @@ -451,6 +452,7 @@ |
452 | 453 | ); |
453 | 454 | } |
454 | 455 | |
| 456 | + // FIXME: Duplicate code. See ChangeSyncer::getImportUser() in scripts/sync-group.php |
455 | 457 | protected static function getFuzzyBot() { |
456 | 458 | global $wgTranslateFuzzyBotName; |
457 | 459 | |