Skip to content

Commit

Permalink
Removing call to RouterRoute::compile()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 2, 2009
1 parent 61b70f1 commit cc1ba32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/router.php
Expand Up @@ -317,8 +317,9 @@ function connectNamed($named, $options = array()) {
if ($named === true || $named === false) {
$options = array_merge(array('default' => $named, 'reset' => true, 'greedy' => $named), $options);
$named = array();
} else {
$options = array_merge(array('default' => false, 'reset' => false, 'greedy' => true), $options);
}
$options = array_merge(array('default' => false, 'reset' => false, 'greedy' => true), $options);

if ($options['reset'] == true || $self->named['rules'] === false) {
$self->named['rules'] = array();
Expand Down Expand Up @@ -432,7 +433,6 @@ function parse($url) {

for ($i = 0, $len = count($self->routes); $i < $len; $i++) {
$route =& $self->routes[$i];
$route->compile();
if (($r = $route->parse($url)) !== false) {
$self->__currentRoute[] =& $route;

Expand Down

0 comments on commit cc1ba32

Please sign in to comment.