fix renderLayout and update deprecated and outdated code

This commit is contained in:
euromark 2013-09-13 00:09:31 +02:00
parent a980fd92b9
commit a796b26f13
35 changed files with 42 additions and 59 deletions

View file

@ -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