diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2015-01-17 09:56:52 +0100 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2015-01-17 09:56:52 +0100 |
commit | 7b843cc7df910a218272f328293f2541d53c23b2 (patch) | |
tree | 10b85f33bf084d8e8f32a7772ac5d9da39de26c6 /framework/Web | |
parent | 1a6bb55ce57681d79cc040582f62b905dab170a8 (diff) | |
parent | 06bb61b2d60eec765fac4f9a4bb8dd3fff050179 (diff) |
Merge pull request #544 from plachance/issue-543
Fix issue #543.
Diffstat (limited to 'framework/Web')
-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); } |