Permalink
Browse files

Fixing an entirely wrong condition that prevented routes from being l…

…oaded.
  • Loading branch information...
markstory committed Dec 23, 2010
1 parent a37b3a1 commit 8eaba29c3f3840f74d2e824524e17ac99de22081
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/dispatcher.php
View
@@ -195,7 +195,7 @@ protected function _invoke(Controller $controller, CakeRequest $request) {
* @return CakeRequest The request object with routing params set.
*/
public function parseParams(CakeRequest $request, $additionalParams = array()) {
- if (count(Router::$routes) > 0) {
+ if (count(Router::$routes) == 0) {
$namedExpressions = Router::getNamedExpressions();
extract($namedExpressions);
$this->__loadRoutes();

0 comments on commit 8eaba29

Please sign in to comment.