Skip to content

Commit

Permalink
Fixing ConsoleShell's use of Router. Fixes #236
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 20, 2010
1 parent c4afeb3 commit 85b1930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/console/libs/console.php
Expand Up @@ -353,8 +353,8 @@ function _loadRoutes() {
foreach (array_keys($router->getNamedExpressions()) as $var) { foreach (array_keys($router->getNamedExpressions()) as $var) {
unset(${$var}); unset(${$var});
} }
for ($i = 0; $i < count($router->routes); $i++) { for ($i = 0, $len = count($router->routes); $i < $len; $i++) {
$router->compile($i); $router->routes[$i]->compile();
} }
return true; return true;
} }
Expand Down

0 comments on commit 85b1930

Please sign in to comment.