mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
172d355e05
commit
5fcf4c7bb3
2 changed files with 2 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue