mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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
This commit is contained in:
parent
29ba60481a
commit
ce9f9bc4da
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue