diff options
Diffstat (limited to 'lib/private/route/router.php')
-rw-r--r-- | lib/private/route/router.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php index 60ba5878401..806bbf51abf 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -158,6 +158,7 @@ class Router implements IRouter { * @throws \Exception */ public function match($url) { + $this->loadRoutes(); $matcher = new UrlMatcher($this->root, $this->context); $parameters = $matcher->match($url); if (isset($parameters['action'])) { @@ -196,6 +197,7 @@ class Router implements IRouter { * @return string */ public function generate($name, $parameters = array(), $absolute = false) { + $this->loadRoutes(); return $this->getGenerator()->generate($name, $parameters, $absolute); } |