Skip to content

Commit

Permalink
Fixing an entirely wrong condition that prevented routes from being l…
Browse files Browse the repository at this point in the history
…oaded.
  • Loading branch information
markstory committed Dec 23, 2010
1 parent a37b3a1 commit 8eaba29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/dispatcher.php
Expand Up @@ -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();
Expand Down

0 comments on commit 8eaba29

Please sign in to comment.