mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
Modules: Call `Module::registerWebIntegration()' after including the run script
Routes added via a module's run script were not respected since `Module::registerRoutes()' is called from `Module::registerWebIntegration()'. refs #6303
This commit is contained in:
parent
93ee8e0a3d
commit
c12c4a9e4c
@ -192,8 +192,7 @@ class Module
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
$this->registerAutoloader()
|
$this->registerAutoloader();
|
||||||
->registerWebIntegration();
|
|
||||||
try {
|
try {
|
||||||
$this->launchRunScript();
|
$this->launchRunScript();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
@ -205,6 +204,7 @@ class Module
|
|||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$this->registerWebIntegration();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user