cvs: pear /Config/Config/Container XML.php
| From: | Bertrand Mansion | Date: | Tue, 08 Nov 2005 16:43:58 +0000 |
| Subject: | cvs: pear /Config/Config/Container XML.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36157@lists.php.net to get a copy of this message | ||
mansion Tue Nov 8 11:43:58 2005 EDT
Modified files:
/pear/Config/Config/Container XML.php
Log:
Fix bug #5367 : XML Rootnode Attributes aren't exported (stephan at wentz dot it)
http://cvs.php.net/diff.php/pear/Config/Config/Container/XML.php?r1=1.12&r2=1.13&ty=u
Index: pear/Config/Config/Container/XML.php
diff -u pear/Config/Config/Container/XML.php:1.12 pear/Config/Config/Container/XML.php:1.13
--- pear/Config/Config/Container/XML.php:1.12 Sat Aug 7 06:11:27 2004
+++ pear/Config/Config/Container/XML.php Tue Nov 8 11:43:58 2005
@@ -15,7 +15,7 @@
// | Author: Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: XML.php,v 1.12 2004/08/07 10:11:27 mansion Exp $
+// $Id: XML.php,v 1.13 2005/11/08 16:43:58 mansion Exp $
require_once('XML/Parser.php');
require_once('XML/Util.php');
@@ -195,7 +195,10 @@
$string .= $this->options['linebreak'];
}
if (!empty($this->options['name'])) {
- $string .=
'<'.$this->options['name'].'>'.$this->options['linebreak'];
+ $string .= '<'.$this->options['name'];
+ $string .= ($this->options['useAttr']) ?
XML_Util::attributesToString($obj->attributes) : '';
+ $string .= '>'.$this->options['linebreak'];
+
$this->_deep++;
$indent = str_repeat($this->options['indent'], $this->_deep);
}