Tweak output from install. Make non-fatals still say OK, but output their possible...
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 8 Aug 2010 15:29:32 +0000 (15:29 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 8 Aug 2010 15:29:32 +0000 (15:29 +0000)
includes/installer/WebInstallerPage.php

index be358ff..52258ce 100644 (file)
@@ -832,14 +832,13 @@ class WebInstaller_Install extends WebInstallerPage {
        }
 
        public function endStage( $step, $status ) {
-               $success = $status->isGood();
-               $msg = $success ? 'config-install-step-done' : 'config-install-step-failed';
+               $msg = $status->isOk() ? 'config-install-step-done' : 'config-install-step-failed';
                $html = wfMsgHtml( 'word-separator' ) . wfMsgHtml( $msg );
-               if ( !$success ) {
+               if ( !$status->isOk() ) {
                        $html = "<span class=\"error\">$html</span>";
                }
                $this->addHTML( $html . "</li>\n" );
-               if( !$success ) {
+               if( !$status->isGood() ) {
                        $this->parent->showStatusBox( $status );
                }
        }