diff options
author | Patrice Lachance <patricelachance@gmail.com> | 2015-01-16 11:46:13 -0500 |
---|---|---|
committer | Patrice Lachance <patricelachance@gmail.com> | 2015-01-16 11:46:13 -0500 |
commit | 06bb61b2d60eec765fac4f9a4bb8dd3fff050179 (patch) | |
tree | 10b85f33bf084d8e8f32a7772ac5d9da39de26c6 | |
parent | 1a6bb55ce57681d79cc040582f62b905dab170a8 (diff) |
Fix issue #543.
-rw-r--r-- | framework/Web/TUrlMapping.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php index 4c93f004..d8ed75a8 100644 --- a/framework/Web/TUrlMapping.php +++ b/framework/Web/TUrlMapping.php @@ -241,9 +241,7 @@ class TUrlMapping extends TUrlManager { foreach($config['urls'] as $url) { - $class=null; - if(!isset($url['class'])) - $class=$defaultClass; + $class=isset($url['class'])?$url['class']:$defaultClass; $properties = isset($url['properties'])?$url['properties']:array(); $this->buildUrlMapping($class,$properties,$url); } |