Index: branches/new-installer/phase3/includes/installer/Installer.php |
— | — | @@ -354,13 +354,13 @@ |
355 | 355 | /** Check if we're installing the latest version */ |
356 | 356 | function envLatestVersion() { |
357 | 357 | global $wgVersion; |
358 | | - $latestInfoUrl = 'http://www.mediawiki.org/w/api.php?action=mwreleases&format=php'; |
| 358 | + $latestInfoUrl = 'http://www.mediawiki.org/w/api.php?action=mwreleases&format=json'; |
359 | 359 | $latestInfo = Http::get( $latestInfoUrl ); |
360 | 360 | if( !$latestInfo ) { |
361 | 361 | $this->showMessage( 'config-env-latest-can-not-check', $latestInfoUrl ); |
362 | 362 | return; |
363 | 363 | } |
364 | | - $latestInfo = unserialize($latestInfo); |
| 364 | + $latestInfo = FormatJson::decode($latestInfo); |
365 | 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 |