Permalink
Browse files

Fixing ConsoleShell's use of Router. Fixes #236

  • Loading branch information...
1 parent c4afeb3 commit 85b193048d402799952239cb9a5bed927c48cb02 @markstory markstory committed Jan 20, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/console/libs/console.php
@@ -353,8 +353,8 @@ function _loadRoutes() {
foreach (array_keys($router->getNamedExpressions()) as $var) {
unset(${$var});
}
- for ($i = 0; $i < count($router->routes); $i++) {
- $router->compile($i);
+ for ($i = 0, $len = count($router->routes); $i < $len; $i++) {
+ $router->routes[$i]->compile();
}
return true;
}

0 comments on commit 85b1930

Please sign in to comment.