From: Max Semenik Date: Wed, 4 Jan 2012 10:08:59 +0000 (+0000) Subject: Made WebInstaller::showStatusMessage() look uniformly for one and multiple errors... X-Git-Tag: 1.31.0-rc.0~25553 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=561bf3146a056801e12978aa1e69cc9371738b8f;p=lhc%2Fweb%2Fwiklou.git Made WebInstaller::showStatusMessage() look uniformly for one and multiple errors/warnings per status --- diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index 519233e59f..1ff77db7a7 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -677,12 +677,10 @@ class WebInstaller extends Installer { * @param $status Status */ public function showStatusMessage( Status $status ) { - $text = $status->getWikiText(); - $this->output->addWikiText( - "
\n" . - $text . - "
" - ); + $errors = array_merge( $status->getErrorsArray(), $status->getWarningsArray() ); + foreach ( $errors as $error ) { + call_user_func_array( array( $this, 'showMessage' ), $error ); + } } /**