r70689 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70688‎ | r70689 | r70690 >
Date:13:03, 8 August 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Allow up to 10 seconds to search for suggestions.
Modified paths:
  • /trunk/extensions/Translate/TranslateTasks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateTasks.php
@@ -192,7 +192,8 @@
193193 $start = time();
194194
195195 foreach ( $this->collection->keys() as $key => $_ ) {
196 - if ( time() - $start > 5 || TranslationHelpers::checkTranslationServiceFailure( 'tmserver' ) ) {
 196+ // Allow up to 10 seconds to search for suggestions.
 197+ if ( time() - $start > 10 || TranslationHelpers::checkTranslationServiceFailure( 'tmserver' ) ) {
197198 unset( $this->collection[$key] );
198199 continue;
199200 }

Status & tagging log