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

View File

@ -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;
} }