Permalink
Browse files

Applying optimization to Router::connect() from 'robustsolution' Fixes

  • Loading branch information...
1 parent ffbd6f5 commit 37120725316547dd1d7d702c81d82bacff706146 @markstory markstory committed Nov 14, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 cake/libs/router.php
View
1 cake/libs/router.php
@@ -232,6 +232,7 @@ function connect($route, $default = array(), $params = array()) {
foreach ($_this->__prefixes as $prefix) {
if (isset($default[$prefix])) {
$default['prefix'] = $prefix;
+ break;
}
}
if (isset($default['prefix'])) {

0 comments on commit 3712072

Please sign in to comment.