Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | $basefilecontents = ""; |
175 | 175 | // use cURL to get the SVN contents |
176 | 176 | if ( preg_match( "/^http/", $basefile ) ) { |
177 | | - while(empty($basefilecontents) && $attempts < $wgLocalisationUpdateRetryAttempts) { |
| 177 | + while(empty($basefilecontents) && $attempts <= $wgLocalisationUpdateRetryAttempts) { |
178 | 178 | if($attempts > 0) |
179 | 179 | sleep(1); |
180 | 180 | $basefilecontents = Http::get( $basefile ); |