Permalink
Browse files

Removing call to RouterRoute::compile()

  • Loading branch information...
1 parent 61b70f1 commit cc1ba32f50e4d0d771c7ab4389ddb08516bec072 @markstory markstory committed Dec 2, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/router.php
View
4 cake/libs/router.php
@@ -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();
@@ -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;

0 comments on commit cc1ba32

Please sign in to comment.