Don't show new and ok message at the same time
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Oct 2010 13:18:14 +0000 (13:18 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Oct 2010 13:18:14 +0000 (13:18 +0000)
includes/installer/Installer.php

index 2966ff7..e416818 100644 (file)
@@ -409,9 +409,9 @@ abstract class Installer {
                        $this->showHelpBox( 'config-env-latest-help', $wgVersion, $currentVersion );
                } elseif( version_compare( $wgVersion, $currentVersion, '>' ) ) {
                        $this->showMessage( 'config-env-latest-new' );
+               } else {
+                       $this->showMessage( 'config-env-latest-ok' );
                }
-
-               $this->showMessage( 'config-env-latest-ok' );
        }
 
        /**