Use an already existing variable instead of calling a function twice..

This commit is contained in:
Johannes Meyer 2015-02-23 17:13:55 +01:00
parent a1e7cd8906
commit 49e7964355
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class Doc_ModuleController extends DocController
{
$moduleManager = Icinga::app()->getModuleManager();
$modules = array();
foreach (Icinga::app()->getModuleManager()->listEnabledModules() as $module) {
foreach ($moduleManager->listEnabledModules() as $module) {
$path = $this->getPath($module, $moduleManager->getModuleDir($module, '/doc'), true);
if ($path !== null) {
$modules[] = $module;