Fixing issue where admin revere routing was possibly unsuccessful due to differences in action param between route and url arrays. Fixes #44 and #6173

This commit is contained in:
mark_story 2009-09-05 01:06:18 -04:00
parent 12457ac6f9
commit bcbdb1cf1d

View file

@ -763,6 +763,9 @@ class Router extends Object {
} else {
$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);