Fixing ConsoleShell's use of Router. Fixes #236

This commit is contained in:
Mark Story 2010-01-20 10:47:04 -05:00
parent c4afeb3fe6
commit 85b193048d

View file

@ -353,8 +353,8 @@ class ConsoleShell extends Shell {
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;
}