From c128439fefc49a54bedbd89f71e2882998053a00 Mon Sep 17 00:00:00 2001 From: nate Date: Sat, 22 Dec 2007 04:46:00 +0000 Subject: [PATCH] Updating XML class to use _name_ in place of __identity__ for Set object conversions (Ticket #3696) git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6192 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/xml.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cake/libs/xml.php b/cake/libs/xml.php index c878cf79f..69cc2f152 100644 --- a/cake/libs/xml.php +++ b/cake/libs/xml.php @@ -122,8 +122,8 @@ class XMLNode extends Object { return $objects; } - if (isset($object->__identity__) && !empty($object->__identity__)) { - $name = $object->__identity__; + if (isset($object->_name_) && !empty($object->_name_)) { + $name = $object->_name_; } elseif (isset($object->name) && $object->name != null) { $name = $object->name; } else { @@ -156,7 +156,7 @@ class XMLNode extends Object { unset($attributes[$key]); } } - unset($attributes['__identity__']); + unset($attributes['_name_']); $node = new XMLNode($name, $attributes, null, $children); return $node;