diff options
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/TUrlMapping.php | 15 |
1 files changed, 1 insertions, 14 deletions
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);
- }
}
/**
|