summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/TUrlMapping.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php
index abfa02fd..929a873e 100644
--- a/framework/Web/TUrlMapping.php
+++ b/framework/Web/TUrlMapping.php
@@ -246,9 +246,8 @@ class TUrlMapping extends TUrlManager
$class=null;
if(!isset($url['class']))
$class=$defaultClass;
- $pattern=Prado::createComponent($class,$this);
$properties = isset($url['properties'])?$url['properties']:array();
- $this->buildUrlMapping($class,$pattern,$properties,$url);
+ $this->buildUrlMapping($class,$properties,$url);
}
}
}
@@ -259,13 +258,12 @@ class TUrlMapping extends TUrlManager
$properties=$url->getAttributes();
if(($class=$properties->remove('class'))===null)
$class=$defaultClass;
- $pattern=Prado::createComponent($class,$this);
- $this->buildUrlMapping($class,$pattern,$properties,$url);
+ $this->buildUrlMapping($class,$properties,$url);
}
}
}
- private function buildUrlMapping($class, $pattern, $properties, $url)
+ private function buildUrlMapping($class, $properties, $url)
{
$pattern=Prado::createComponent($class,$this);
if(!($pattern instanceof TUrlMappingPattern))