Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -141,8 +141,11 @@ |
142 | 142 | // use cURL to get the SVN contents |
143 | 143 | if ( preg_match( "/^http/", $basefile ) ) { |
144 | 144 | while( !$basefilecontents && $attempts <= $wgLocalisationUpdateRetryAttempts) { |
145 | | - if($attempts > 0) |
146 | | - sleep(1); |
| 145 | + if($attempts > 0) { |
| 146 | + $delay = 1; |
| 147 | + self::myLog( "Failed to download " . $basefile . "; retrying in ${delay}s..." ); |
| 148 | + sleep( $delay ); |
| 149 | + } |
147 | 150 | $basefilecontents = Http::get( $basefile ); |
148 | 151 | $attempts++; |
149 | 152 | } |