Fixed prefixed action prefix reverse routing match. One liner.

This commit is contained in:
Sam 2014-02-10 01:38:32 +11:00
parent 9691e54248
commit 7fd13d406c

View file

@ -490,7 +490,7 @@ class CakeRoute {
$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']);
}