Minor refactor to earlier code.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7773 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-10-23 02:05:34 +00:00
parent 1b456f2cf1
commit 3a7ccff571

View file

@ -94,8 +94,8 @@ class Object {
if (in_array('return', $extra, true)) { if (in_array('return', $extra, true)) {
$extra = array_merge($extra, array('return' => 0, 'autoRender' => 1)); $extra = array_merge($extra, array('return' => 0, 'autoRender' => 1));
} }
if (is_array($url)) { if (is_array($url) && !isset($extra['url'])) {
$extra = array_merge(array('url' => array()), $extra); $extra['url'] = array();
} }
$params = array_merge(array('autoRender' => 0, 'return' => 1, 'bare' => 1, 'requested' => 1), $extra); $params = array_merge(array('autoRender' => 0, 'return' => 1, 'bare' => 1, 'requested' => 1), $extra);
$dispatcher = new Dispatcher; $dispatcher = new Dispatcher;