Use an already existing variable instead of calling a function twice..
This commit is contained in:
parent
a1e7cd8906
commit
49e7964355
|
@ -49,7 +49,7 @@ class Doc_ModuleController extends DocController
|
||||||
{
|
{
|
||||||
$moduleManager = Icinga::app()->getModuleManager();
|
$moduleManager = Icinga::app()->getModuleManager();
|
||||||
$modules = array();
|
$modules = array();
|
||||||
foreach (Icinga::app()->getModuleManager()->listEnabledModules() as $module) {
|
foreach ($moduleManager->listEnabledModules() as $module) {
|
||||||
$path = $this->getPath($module, $moduleManager->getModuleDir($module, '/doc'), true);
|
$path = $this->getPath($module, $moduleManager->getModuleDir($module, '/doc'), true);
|
||||||
if ($path !== null) {
|
if ($path !== null) {
|
||||||
$modules[] = $module;
|
$modules[] = $module;
|
||||||
|
|
Loading…
Reference in New Issue