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:
Eric Lippmann 2014-05-28 13:29:02 +02:00
parent 93ee8e0a3d
commit c12c4a9e4c
1 changed files with 2 additions and 2 deletions

View File

@ -192,8 +192,7 @@ class Module
*/
public function register()
{
$this->registerAutoloader()
->registerWebIntegration();
$this->registerAutoloader();
try {
$this->launchRunScript();
} catch (Exception $e) {
@ -205,6 +204,7 @@ class Module
);
return false;
}
$this->registerWebIntegration();
return true;
}