Skip to content
Permalink
Browse files

Applying minor optimization from 'robustsolution' to Router::connectN…

…amed().

Fixes #312
  • Loading branch information...
markstory committed Nov 24, 2009
1 parent 5aba143 commit 72c0e2ca5a22932ecfdc855e4176e24c50a284eb
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/libs/router.php
@@ -252,8 +252,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 || $_this->named['rules'] === false) {
$_this->named['rules'] = array();

0 comments on commit 72c0e2c

Please sign in to comment.
You can’t perform that action at this time.