From 3c4109b0e41db4cdf6f263a25cff3ff096af96da Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Thu, 29 Jul 2010 17:54:44 +0000 Subject: [PATCH] Follow up to r70140 --- includes/installer/CoreInstaller.php | 8 ++++++++ includes/installer/WebInstaller.php | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/includes/installer/CoreInstaller.php b/includes/installer/CoreInstaller.php index 2474453eb4..7735e02ea3 100644 --- a/includes/installer/CoreInstaller.php +++ b/includes/installer/CoreInstaller.php @@ -167,6 +167,14 @@ abstract class CoreInstaller extends Installer { ), ); + /** + * TODO: doucment + * + * @param Status $status + */ + public abstract function showStatusMessage( Status $status ); + + /** * Constructor, always call this from child classes. */ diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index ab37c265ca..f3a90799ce 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -653,6 +653,8 @@ class WebInstaller extends CoreInstaller { /** * Show a short informational message. * Output looks like a list. + * + * @param srting $msg */ public function showMessage( $msg /*, ... */ ) { $args = func_get_args(); @@ -662,6 +664,18 @@ class WebInstaller extends CoreInstaller { "\n"; $this->output->addHTML( $html ); } + + /** + * @param Status $status + */ + public function showStatusMessage( Status $status ) { + $text = $status->getWikiText(); + $this->output->addWikiText( + "
\n" . + $text . + "
" + ); + } /** * Label a control by wrapping a config-input div around it and putting a -- 2.20.1