mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Do not load a module twice while enabling it
This commit is contained in:
parent
f3fa743022
commit
4324385010
@ -163,7 +163,6 @@ class ConfigController extends ActionController
|
|||||||
$manager = Icinga::app()->getModuleManager();
|
$manager = Icinga::app()->getModuleManager();
|
||||||
try {
|
try {
|
||||||
$manager->enableModule($module);
|
$manager->enableModule($module);
|
||||||
$manager->loadModule($module);
|
|
||||||
Notification::success(sprintf($this->translate('Module "%s" enabled'), $module));
|
Notification::success(sprintf($this->translate('Module "%s" enabled'), $module));
|
||||||
$this->rerenderLayout()->reloadCss()->redirectNow('config/modules');
|
$this->rerenderLayout()->reloadCss()->redirectNow('config/modules');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user