summaryrefslogtreecommitdiff
path: root/framework/Web/TUrlMapping.php
diff options
context:
space:
mode:
authorxue <>2007-06-19 18:00:29 +0000
committerxue <>2007-06-19 18:00:29 +0000
commit09d538d13f504a6337413e85047d6e2125a9171a (patch)
treebb34546ba01b235e4b0f44e82eabcd9c3a45cf0d /framework/Web/TUrlMapping.php
parenteb147ad0c3da382d991ae542720a36910f988d60 (diff)
Fixed #653.
Diffstat (limited to 'framework/Web/TUrlMapping.php')
-rw-r--r--framework/Web/TUrlMapping.php15
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);
- }
}
/**