mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix for #1173.
Component startup method or beforFilters not called when controller missing action git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3511 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
eec9f66d74
commit
8760dce3ef
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,7 @@ class Dispatcher extends Object {
|
|||
$controller->constructClasses();
|
||||
|
||||
if ($missingAction && !in_array('scaffold', array_keys($classVars))){
|
||||
$this->start($controller);
|
||||
return $this->cakeError('missingAction', array(
|
||||
array('className' => Inflector::camelize($params['controller']."Controller"),
|
||||
'action' => $params['action'],
|
||||
|
@ -265,6 +266,7 @@ class Dispatcher extends Object {
|
|||
}
|
||||
|
||||
if ($privateAction) {
|
||||
$this->start($controller);
|
||||
return $this->cakeError('privateAction', array(
|
||||
array('className' => Inflector::camelize($params['controller']."Controller"),
|
||||
'action' => $params['action'],
|
||||
|
|
Loading…
Reference in a new issue