From: Jeroen De Dauw Date: Thu, 29 Jul 2010 17:54:44 +0000 (+0000) Subject: Follow up to r70140 X-Git-Tag: 1.31.0-rc.0~35842 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=3c4109b0e41db4cdf6f263a25cff3ff096af96da;p=lhc%2Fweb%2Fwiklou.git Follow up to r70140 --- 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