r57657 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57656‎ | r57657 | r57658 >
Date:16:58, 12 October 2009
Author:demon
Status:ok
Tags:
Comment:
Show a notice when installing a dev copy of MW
Modified paths:
  • /branches/new-installer/phase3/includes/installer/Installer.php (modified) (history)
  • /branches/new-installer/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /branches/new-installer/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: branches/new-installer/phase3/maintenance/language/messages.inc
@@ -3106,6 +3106,7 @@
31073107 'config-env-bad',
31083108 'config-env-php',
31093109 'config-env-latest-ok',
 3110+ 'config-env-latest-new',
31103111 'config-env-latest-old',
31113112 'config-env-latest-help',
31123113 'config-no-db',
Index: branches/new-installer/phase3/includes/installer/Installer.php
@@ -329,6 +329,8 @@
330330 if( version_compare( $wgVersion, $currentVersion, '<' ) ) {
331331 $this->showMessage( 'config-env-latest-old' );
332332 $this->showHelpBox( 'config-env-latest-help', $wgVersion, $currentVersion );
 333+ } elseif( version_compare( $wgVersion, $currentVersion, '>' ) ) {
 334+ $this->showMessage( 'config-env-latest-new' );
333335 }
334336 $this->showMessage( 'config-env-latest-ok' );
335337 }
Index: branches/new-installer/phase3/languages/messages/MessagesEn.php
@@ -4073,6 +4073,7 @@
40744074 * [http://www.mediawiki.org/wiki/Manual:FAQ FAQ]
40754075 ",
40764076 'config-env-latest-ok' => 'You are installing the latest version of Mediawiki',
 4077+'config-env-latest-new' => "'''Note:''' You are installing a development version of Mediawiki",
40774078 'config-env-latest-old' => "'''Warning''': You are installing an outdated version of Mediawiki",
40784079 'config-env-latest-help' => 'You are installing version $1, but the latest version is $2.
40794080 You are advised to use the latest release, which can be downloaded from [http://www.mediawiki.org/wiki/Download Mediawiki.org]',

Status & tagging log