Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed prefixed action prefix reverse routing match. One liner.
  • Loading branch information
sgpinkus committed Feb 9, 2014
1 parent 9691e54 commit 7fd13d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Routing/Route/CakeRoute.php
Expand Up @@ -490,7 +490,7 @@ protected function _writeUrl($params) {
$prefixed = $params['prefix'] . '_';
}
if (isset($prefixed, $params['action']) && strpos($params['action'], $prefixed) === 0) {
$params['action'] = substr($params['action'], strlen($prefixed) * -1);
$params['action'] = substr($params['action'], strlen($prefixed) );
unset($params['prefix']);
}

Expand Down

0 comments on commit 7fd13d4

Please sign in to comment.