From 5842bf2b7276b1451644d3a4017626817fccbdbc Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 20 Jun 2012 15:24:29 +0200 Subject: [PATCH] Bugfix to make uParameters properly available when routing a request --- components/component.router.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/component.router.php b/components/component.router.php index ee4bb04..ed89cd1 100644 --- a/components/component.router.php +++ b/components/component.router.php @@ -66,6 +66,8 @@ class CPHPRouter extends CPHPBaseClass $regex = str_replace("/", "\/", $route_regex); if(preg_match("/{$regex}/i", $requestpath, $matches)) { + $this->uParameters = $matches; + if(is_array($route_destination)) { // Options were provided. @@ -119,7 +121,6 @@ class CPHPRouter extends CPHPBaseClass $destination = $route_destination; } - $this->uParameters = $matches; include($destination); $found = true; }