mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-28 14:56:23 +00:00
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:
parent
3feac9a768
commit
70366e99e0
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ class AuthComponent extends Object {
|
||||||
case 'crud':
|
case 'crud':
|
||||||
$this->mapActions();
|
$this->mapActions();
|
||||||
if (!isset($this->actionMap[$this->params['action']])) {
|
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 {
|
} else {
|
||||||
$valid = $this->Acl->check($user, $this->action(':controller'), $this->actionMap[$this->params['action']]);
|
$valid = $this->Acl->check($user, $this->action(':controller'), $this->actionMap[$this->params['action']]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue