mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Properly set the current action on CakeRequest when invoking Controller::setAction()
This commit is contained in:
parent
533feea2b1
commit
6046b8d013
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ class Controller extends Object {
|
|||
* @return mixed Returns the return value of the called action
|
||||
*/
|
||||
public function setAction($action) {
|
||||
$this->request->action = $action;
|
||||
$this->request->params['action'] = $action;
|
||||
$this->view = $action;
|
||||
$args = func_get_args();
|
||||
unset($args[0]);
|
||||
|
|
Loading…
Add table
Reference in a new issue