Skip to content

Commit

Permalink
Fixing issue where admin revere routing was possibly unsuccessful due…
Browse files Browse the repository at this point in the history
… to differences in action param between route and url arrays. Fixes #44 and #6173
  • Loading branch information
markstory committed Sep 5, 2009
1 parent 12457ac commit bcbdb1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cake/libs/router.php
Expand Up @@ -763,6 +763,9 @@ function url($url = null, $full = false) {
} else { } else {
$params = end($_this->__params); $params = end($_this->__params);
} }
if (isset($params['prefix']) && strpos($params['action'], $params['prefix']) === 0) {
$params['action'] = substr($params['action'], strlen($params['prefix']) + 1);
}
} }
$path = array('base' => null); $path = array('base' => null);


Expand Down

0 comments on commit bcbdb1c

Please sign in to comment.