Changeset 3371
- Timestamp:
- 08/27/2008 06:04:33 PM (3 months ago)
- Files:
-
- 1 modified
-
trunk/system/classes/router.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/classes/router.php
r3368 r3371 25 25 * 26 26 * [ref-esr]: http://docs.kohanaphp.com/events/system.routing 27 * 27 28 * @return boolean 28 29 */ … … 81 82 } 82 83 83 if ( isset($route[$key]))84 if ($key !== 'controller' AND $key !== 'method' AND isset($route[$key])) 84 85 { 85 86 // Add the value to the arguments … … 90 91 91 92 // Set controller name 92 self::$controller = $route['controller'];93 self::$controller = str_replace('/', '_', $route['controller']); 93 94 94 95 if (isset($route['method'])) 95 96 { 96 97 // Set controller method 97 self::$method = $route['method'];98 self::$method = str_replace('/', '_', $route['method']); 98 99 } 99 100 else
