mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 05:22:41 +00:00
fix renderLayout and update deprecated and outdated code
This commit is contained in:
parent
a980fd92b9
commit
a796b26f13
35 changed files with 42 additions and 59 deletions
|
@ -226,7 +226,7 @@ class SecurityComponent extends Component {
|
|||
$this->_secureRequired($controller);
|
||||
$this->_authRequired($controller);
|
||||
|
||||
$isPost = ($this->request->is('post') || $this->request->is('put'));
|
||||
$isPost = $this->request->is(array('post', 'put'));
|
||||
$isNotRequestAction = (
|
||||
!isset($controller->request->params['requested']) ||
|
||||
$controller->request->params['requested'] != 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue