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