From ce9f9bc4dad699747a5c0e310803c0703a1bbd3e Mon Sep 17 00:00:00 2001 From: phpnut Date: Wed, 1 Nov 2006 04:54:25 +0000 Subject: [PATCH] Adding $this->params['requested']; if method is called through requestAction git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3783 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/object.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cake/libs/object.php b/cake/libs/object.php index 81df231fd..b08ed259c 100644 --- a/cake/libs/object.php +++ b/cake/libs/object.php @@ -90,6 +90,7 @@ class Object{ if (in_array('return', $extra)) { $extra['return'] = 0; $extra['bare'] = 1; + $extra['requested'] = 1; ob_start(); $out = $dispatcher->dispatch($url, $extra); $out = ob_get_clean(); @@ -97,6 +98,7 @@ class Object{ } else { $extra['return'] = 1; $extra['bare'] = 1; + $extra['requested'] = 1; return $dispatcher->dispatch($url, $extra); } } else {