Clean-up from XML commit

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6423 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-02-01 05:00:44 +00:00
parent 172d355e05
commit 5fcf4c7bb3
2 changed files with 2 additions and 12 deletions

View file

@ -214,16 +214,7 @@ class XmlHelper extends AppHelper {
if (!class_exists('XML') && !class_exists('xml')) {
App::import('Core', 'Xml');
}
$options = array_merge(array('attributes' => false, 'format' => 'attributes'), $options);
switch ($options['format']) {
case 'tags':
break;
case 'attributes':
break;
}
$data = new Xml($data);
$data = new Xml($data, array_merge(array('attributes' => false, 'format' => 'attributes'), $options));
return $data->toString(false);
}
}

View file

@ -27,8 +27,7 @@
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
uses('set');
define('STACK_LIMIT', 18);
App::import('Core', 'Set');
/**
* XML node.