Permalink
Browse files

Fixed prefixed action prefix reverse routing match. One liner.

  • Loading branch information...
1 parent 9691e54 commit 7fd13d406c9506def92708ad0b230fea5c04d6c5 @sam-at-github sam-at-github committed Feb 9, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Routing/Route/CakeRoute.php
View
2 lib/Cake/Routing/Route/CakeRoute.php
@@ -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']);
}

0 comments on commit 7fd13d4

Please sign in to comment.