/**
  * Output an error or warning box using a Status object.
  *
  * @param $status Status
  */
 public function showStatusBox($status)
 {
     if (!$status->isGood()) {
         $text = $status->getWikiText();
         if ($status->isOk()) {
             $box = $this->getWarningBox($text);
         } else {
             $box = $this->getErrorBox($text);
         }
         $this->output->addHTML($box);
     }
 }
Example #2
0
 /**
  * Output stylesheet for web installer pages
  */
 public function outputCss()
 {
     $this->request->response()->header('Content-type: text/css');
     echo $this->output->getCSS();
 }