Skip to content
Permalink
Browse files

Updating more methods to use request object method instead of depreca…

…ted methods.
  • Loading branch information...
markstory committed May 8, 2010
1 parent 5040eb7 commit 4b637a0f70a5bd8ff0caabe1bb20dcd53b97db42
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/controller/components/request_handler.php
@@ -226,7 +226,7 @@ public function startup(&$controller) {
* @param mixed $url A string or array containing the redirect location
*/
public function beforeRedirect(&$controller, $url) {
if (!$this->isAjax()) {
if (!$this->request->is('ajax')) {
return;
}
foreach ($_POST as $key => $val) {
@@ -460,7 +460,7 @@ function accepts($type = null) {
* @return mixed
*/
public function requestedWith($type = null) {
if (!$this->isPost() && !$this->isPut()) {
if (!$this->request->is('post') && !$this->request->is('put')) {
return null;
}

0 comments on commit 4b637a0

Please sign in to comment.
You can’t perform that action at this time.