return false;
}
+ /**
+ * Get the internal format name
+ */
+ public function getFormat() {
+ return $this->mFormat;
+ }
+
/**
* Specify whether or not ampersands should be escaped to '&' when rendering. This
* should only be set to true for the help message when rendered in the default (xmlfm)
* tell the printer not to escape ampersands so that our links do
* not break. */
$printer->setUnescapeAmps ( ( $this->mAction == 'help' || $isError )
- && $this->getParameter('format') == ApiMain::API_DEFAULT_FORMAT );
+ && $printer->getFormat() == 'XML' && $printer->getIsHtml() );
$printer->initPrinter($isError);