Skip to content
Snippets Groups Projects
Commit d75c3d5f authored by Robin Appelman's avatar Robin Appelman
Browse files

Fix routes getting lost when loading app routes twice

parent e1d3d0e9
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,7 @@ class Router implements IRouter {
}
}
foreach ($routingFiles as $app => $file) {
if (!$this->loadedApps[$app]) {
$this->loadedApps[$app] = true;
$this->useCollection($app);
require_once $file;
......@@ -121,6 +122,7 @@ class Router implements IRouter {
$collection->addPrefix('/apps/' . $app);
$this->root->addCollection($collection);
}
}
if (!isset($this->loadedApps['core'])) {
$this->loadedApps['core'] = true;
$this->useCollection('root');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment