http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70146
Revision: 70146
Author: jeroendedauw
Date: 2010-07-29 17:54:44 +0000 (Thu, 29 Jul 2010)
Log Message:
-----------
Follow up to r70140
Modified Paths:
--------------
trunk/phase3/includes/installer/CoreInstaller.php
trunk/phase3/includes/installer/WebInstaller.php
Modified: trunk/phase3/includes/installer/CoreInstaller.php
===================================================================
--- trunk/phase3/includes/installer/CoreInstaller.php 2010-07-29 16:46:31 UTC
(rev 70145)
+++ trunk/phase3/includes/installer/CoreInstaller.php 2010-07-29 17:54:44 UTC
(rev 70146)
@@ -168,6 +168,14 @@
);
/**
+ * TODO: doucment
+ *
+ * @param Status $status
+ */
+ public abstract function showStatusMessage( Status $status );
+
+
+ /**
* Constructor, always call this from child classes.
*/
public function __construct() {
Modified: trunk/phase3/includes/installer/WebInstaller.php
===================================================================
--- trunk/phase3/includes/installer/WebInstaller.php 2010-07-29 16:46:31 UTC
(rev 70145)
+++ trunk/phase3/includes/installer/WebInstaller.php 2010-07-29 17:54:44 UTC
(rev 70146)
@@ -653,6 +653,8 @@
/**
* 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 @@
"</div>\n";
$this->output->addHTML( $html );
}
+
+ /**
+ * @param Status $status
+ */
+ public function showStatusMessage( Status $status ) {
+ $text = $status->getWikiText();
+ $this->output->addWikiText(
+ "<div class=\"config-message\">\n" .
+ $text .
+ "</div>"
+ );
+ }
/**
* Label a control by wrapping a config-input div around it and putting
a
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs