From d93d37a10c289d9ffe99e765c45f47209686c893 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Sat, 22 Nov 2008 22:46:17 +0000 Subject: * Fixed a bug in the Atom library where child elements were not added to their proper parents. * Added valid Atom 1.0 feeds for comments. They can be seen at: http://gallery.example.com/index.php/comments?item_id={photo_id}&_format=atom --- modules/atom/libraries/Atom_Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/atom/libraries') diff --git a/modules/atom/libraries/Atom_Base.php b/modules/atom/libraries/Atom_Base.php index 6e0098da..bf115033 100644 --- a/modules/atom/libraries/Atom_Base.php +++ b/modules/atom/libraries/Atom_Base.php @@ -66,7 +66,7 @@ class Atom_Base_Core { protected function add_children_to_base_element() { foreach ($this->children as $element_type => $elements) { - $base_element = $this->dom->getElementsByTagName($this->element_name)->item(0); + $base_element = $this->element; foreach ($elements as $id => $element) { $base_element->appendChild($element->get_element()); } -- cgit v1.2.3