From 09d538d13f504a6337413e85047d6e2125a9171a Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 19 Jun 2007 18:00:29 +0000 Subject: Fixed #653. --- framework/Web/TUrlMapping.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'framework') diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php index 5c04ea8e..82f49877 100644 --- a/framework/Web/TUrlMapping.php +++ b/framework/Web/TUrlMapping.php @@ -163,11 +163,11 @@ class TUrlMapping extends TUrlManager if(count($matches) > 0) { $this->_matched=$pattern; - $this->changeServiceParameters($pattern); $params=array(); foreach($matches as $key=>$value) if(is_string($key)) $params[$key]=$value; + $params[$pattern->getServiceID()]=$pattern->getServiceParameter(); return $params; } } @@ -181,19 +181,6 @@ class TUrlMapping extends TUrlManager { return $this->_matched; } - - /** - * @param TUrlMappingPattern change the Request service ID and page class. - */ - protected function changeServiceParameters($pattern) - { - $request = $this->getRequest(); - $id = $pattern->getServiceID(); - $param = $pattern->getServiceParameter(); - $request->setServiceID($id); - $request->setServiceParameter($param); - $request->add($id,$param); - } } /** -- cgit v1.2.3