Changeset 2336
- Timestamp:
- 10/05/06 19:55:06 (2 years ago)
- Files:
-
- trunk/lib/controller/sfRouting.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/controller/sfRouting.class.php
r2317 r2336 319 319 320 320 // all params must be given 321 foreach ($names as $ name)322 { 323 if (!isset($params[$ name]) && !isset($default[$name]))324 { 325 throw new sfException(sprintf('Route named "%s" have a mandatory "%s" parameter', $name, $ name));321 foreach ($names as $tmp) 322 { 323 if (!isset($params[$tmp]) && !isset($defaults[$tmp])) 324 { 325 throw new sfException(sprintf('Route named "%s" have a mandatory "%s" parameter', $name, $tmp)); 326 326 } 327 327 }