echo Horde::img(Horde_Util::addParameter(Horde::selfUrl(true), 'p', 1), '', '', '');
} elseif ($this->pretty->canRender('inline')) {
$data = $this->pretty->render('inline');
+ $data = reset($data);
echo $data['data'];
} else {
echo Horde::link(Horde_Util::addParameter(Horde::selfUrl(true), 'p', 1)) . Horde::img('download.png') . ' ' . sprintf(_("Download revision %s"), $r) . '</a>';
{
$html = $this->_cleanHTML($this->_mimepart->getContents(), array('inline' => true));
- return array(
- 'data' => Horde_String::convertCharset($html, $this->_mimepart->getCharset(), $this->getConfigParam('charset')),
- 'status' => array(),
- 'type' => 'text/html; charset=' . $this->getConfigParam('charset'),
+ return $this->_renderReturn(
+ Horde_String::convertCharset($html, $this->_mimepart->getCharset(), $this->getConfigParam('charset')),
+ 'type' => 'text/html; charset=' . $this->getConfigParam('charset')
);
}