mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 04:44:25 +02:00
doc/ModuleController: Do not use 'void' results
This commit is contained in:
parent
c7e6252aca
commit
3120a0c090
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user