parent
16d388f4e3
commit
96ea02e59f
|
@ -2,5 +2,5 @@
|
|||
<?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
|
||||
</div>
|
||||
<div class="content">
|
||||
<?= /** @type \Icinga\Module\Doc\SectionRenderer $section */ $section ?>
|
||||
<?= /** @type \Icinga\Module\Doc\DocSectionRenderer $section */ $section ?>
|
||||
</div>
|
||||
|
|
|
@ -18,7 +18,7 @@ class DocController extends ModuleActionController
|
|||
protected function renderChapter($path, $chapter, $url, array $urlParams = array())
|
||||
{
|
||||
$parser = new DocParser($path);
|
||||
$section = new SectionRenderer($parser->getDocTree(), SectionRenderer::decodeUrlParam($chapter));
|
||||
$section = new DocSectionRenderer($parser->getDocTree(), DocSectionRenderer::decodeUrlParam($chapter));
|
||||
$this->view->section = $section
|
||||
->setUrl($url)
|
||||
->setUrlParams($urlParams)
|
||||
|
|
|
@ -20,7 +20,7 @@ use Icinga\Web\View;
|
|||
/**
|
||||
* Section renderer
|
||||
*/
|
||||
class SectionRenderer extends Renderer
|
||||
class DocSectionRenderer extends Renderer
|
||||
{
|
||||
/**
|
||||
* Content to render
|
Loading…
Reference in New Issue