doc/ModuleController: Do not use 'void' results

This commit is contained in:
Eric Lippmann 2014-12-09 14:30:57 +01:00
parent c7e6252aca
commit 3120a0c090

View File

@ -101,7 +101,7 @@ class Doc_ModuleController extends DocController
$this->assertModuleEnabled($module); $this->assertModuleEnabled($module);
$this->view->moduleName = $module; $this->view->moduleName = $module;
try { try {
return $this->renderToc( $this->renderToc(
$this->getPath($module, Icinga::app()->getModuleManager()->getModuleDir($module, '/doc')), $this->getPath($module, Icinga::app()->getModuleManager()->getModuleDir($module, '/doc')),
$module, $module,
'doc/module/chapter', 'doc/module/chapter',
@ -132,7 +132,7 @@ class Doc_ModuleController extends DocController
} }
$this->view->moduleName = $module; $this->view->moduleName = $module;
try { try {
return $this->renderChapter( $this->renderChapter(
$this->getPath($module, Icinga::app()->getModuleManager()->getModuleDir($module, '/doc')), $this->getPath($module, Icinga::app()->getModuleManager()->getModuleDir($module, '/doc')),
$chapterId, $chapterId,
$this->_helper->url->url(array('moduleName' => $module), 'doc/module/toc'), $this->_helper->url->url(array('moduleName' => $module), 'doc/module/toc'),
@ -153,7 +153,7 @@ class Doc_ModuleController extends DocController
{ {
$module = $this->getParam('moduleName'); $module = $this->getParam('moduleName');
$this->assertModuleEnabled($module); $this->assertModuleEnabled($module);
return $this->renderPdf( $this->renderPdf(
$this->getPath($module, Icinga::app()->getModuleManager()->getModuleDir($module, '/doc')), $this->getPath($module, Icinga::app()->getModuleManager()->getModuleDir($module, '/doc')),
$module, $module,
'doc/module/chapter', 'doc/module/chapter',