Index: branches/new-installer/phase3/includes/installer/Installer.php |
— | — | @@ -361,15 +361,15 @@ |
362 | 362 | return; |
363 | 363 | } |
364 | 364 | $latestInfo = FormatJson::decode($latestInfo); |
365 | | - if ($latestInfo === false || !isset( $latestInfo['mwreleases'] ) ) { |
| 365 | + if ($latestInfo === false || !isset( $latestInfo->mwreleases ) ) { |
366 | 366 | # For when the request is successful but there's e.g. some silly man in |
367 | 367 | # the middle firewall blocking us, e.g. one of those annoying airport ones |
368 | 368 | $this->showMessage( 'config-env-latest-data-invalid', $latestInfoUrl ); |
369 | 369 | return; |
370 | 370 | } |
371 | | - foreach( $latestInfo['mwreleases'] as $rel ) { |
372 | | - if( isset( $rel['current'] ) ) |
373 | | - $currentVersion = $rel['version']; |
| 371 | + foreach( $latestInfo->mwreleases as $rel ) { |
| 372 | + if( isset( $rel->current ) ) |
| 373 | + $currentVersion = $rel->version; |
374 | 374 | } |
375 | 375 | if( version_compare( $wgVersion, $currentVersion, '<' ) ) { |
376 | 376 | $this->showMessage( 'config-env-latest-old' ); |