mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
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();
|
||||
$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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user