Bugfix to make uParameters properly available when routing a request

develop
Sven Slootweg 12 years ago
parent 44196de152
commit 5842bf2b72

@ -66,6 +66,8 @@ class CPHPRouter extends CPHPBaseClass
$regex = str_replace("/", "\/", $route_regex); $regex = str_replace("/", "\/", $route_regex);
if(preg_match("/{$regex}/i", $requestpath, $matches)) if(preg_match("/{$regex}/i", $requestpath, $matches))
{ {
$this->uParameters = $matches;
if(is_array($route_destination)) if(is_array($route_destination))
{ {
// Options were provided. // Options were provided.
@ -119,7 +121,6 @@ class CPHPRouter extends CPHPBaseClass
$destination = $route_destination; $destination = $route_destination;
} }
$this->uParameters = $matches;
include($destination); include($destination);
$found = true; $found = true;
} }

Loading…
Cancel
Save