change error message format for i18n in Auth, closes #3539

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5976 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-11-09 15:41:06 +00:00
parent 3feac9a768
commit 70366e99e0

View file

@ -419,7 +419,7 @@ class AuthComponent extends Object {
case 'crud':
$this->mapActions();
if (!isset($this->actionMap[$this->params['action']])) {
trigger_error(sprintf(__('Auth::startup() - Attempted access of un-mapped action "%s" in controller "%s"', true), $this->params['action'], $this->params['controller']), E_USER_WARNING);
trigger_error(sprintf(__('Auth::startup() - Attempted access of un-mapped action "$1%s" in controller "$2%s"', true), $this->params['action'], $this->params['controller']), E_USER_WARNING);
} else {
$valid = $this->Acl->check($user, $this->action(':controller'), $this->actionMap[$this->params['action']]);
}