summaryrefslogtreecommitdiff
path: root/modules/atom
diff options
context:
space:
mode:
authorJozef Selesi <jozefs@users.sourceforge.net>2008-11-22 22:46:17 +0000
committerJozef Selesi <jozefs@users.sourceforge.net>2008-11-22 22:46:17 +0000
commitd93d37a10c289d9ffe99e765c45f47209686c893 (patch)
treea916d23ce814514cf409c2e3215926c9c900e4d1 /modules/atom
parent1b76def26fbfc4ef3f0fcb2df210d916b972628b (diff)
* 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
Diffstat (limited to 'modules/atom')
-rw-r--r--modules/atom/libraries/Atom_Base.php2
1 files changed, 1 insertions, 1 deletions
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());
}