#6 Handling of Atom 1.0 categories

open
nobody
None
5
2005-10-10
2005-10-10
Arjen G. Lentz
No

Expanding on the earlier patch for handling categories
in general, this adds support for the new category tag
in Atom 1.0.
Unified patch below and also attached.

--- magpierss-0.71.1/rss_parse.inc Tue Aug 9 09:08:50 2005
+++ rss_parse.inc.new Sat Oct 8 10:25:03 2005
@@ -250,6 +250,13 @@

$this->append($link_el, $attrs['href']);
}
+ elseif ($this->feed_type == ATOM and $el ==
'category' )
+ {
+ if ( isset($attrs['term']) )
+ {
+ $this->append($el, $attrs['term']);
+ }
+ }
// set stack[0] to current element
else {
array_unshift($this->stack, $el);

Discussion