Donate Share

MagpieRSS

Tracker: Patches

5 Handling of Atom 1.0 categories - ID: 1321585
Last Update: Attachment added ( aglnl )

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);


Arjen G. Lentz ( aglnl ) - 2005-10-10 02:09

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
rss_parse-fix-atom1.0-category-arjen-2005-10-08.diff Download

Change ( 1 )

Field Old Value Date By
File Added 151891: rss_parse-fix-atom1.0-category-arjen-2005-10-08.diff 2005-10-10 02:09 aglnl