Index: branches/new-installer/phase3/includes/installer/Installer.i18n.php |
— | — | @@ -70,6 +70,7 @@ |
71 | 71 | 'config-env-php' => 'PHP $1 installed.', |
72 | 72 | 'config-env-latest-ok' => 'You are installing the latest version of Mediawiki.', |
73 | 73 | 'config-env-latest-new' => "'''Note:''' You are installing a development version of Mediawiki.", |
| 74 | + 'config-env-latest-can-not-check' => "'''Note:''' We were unable to retrieve information about the latest MediaWiki release (from [$1]).", |
74 | 75 | 'config-env-latest-old' => "'''Warning:''' You are installing an outdated version of Mediawiki.", |
75 | 76 | 'config-env-latest-help' => 'You are installing version $1, but the latest version is $2. |
76 | 77 | You are advised to use the latest release, which can be downloaded from [http://www.mediawiki.org/wiki/Download mediawiki.org]', |
Index: branches/new-installer/phase3/includes/installer/Installer.php |
— | — | @@ -354,8 +354,10 @@ |
355 | 355 | /** Check if we're installing the latest version */ |
356 | 356 | function envLatestVersion() { |
357 | 357 | global $wgVersion; |
358 | | - $latestInfo = Http::get( 'http://www.mediawiki.org/w/api.php?action=mwreleases&format=php' ); |
| 358 | + $latestInfoUrl = 'http://www.mediawiki.org/w/api.php?action=mwreleases&format=php'; |
| 359 | + $latestInfo = Http::get( $latestInfoUrl ); |
359 | 360 | if( !$latestInfo ) { |
| 361 | + $this->showMessage( 'config-env-latest-can-not-check', $latestInfoUrl ); |
360 | 362 | return; |
361 | 363 | } |
362 | 364 | $latestInfo = unserialize($latestInfo); |