From 593af9feb6cdbb88e250501938722e656fe4a17a Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 14 Jul 2009 13:33:40 -0400 Subject: Moved the decision logic as to whether an attachment should be an enclosure to the File class --- lib/rssaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rssaction.php') diff --git a/lib/rssaction.php b/lib/rssaction.php index 183c09f47..ffa1f9e99 100644 --- a/lib/rssaction.php +++ b/lib/rssaction.php @@ -237,7 +237,7 @@ class Rss10Action extends Action $attachments = $notice->attachments(); if($attachments){ foreach($attachments as $attachment){ - if (isset($attachment->filename)) { + if ($attachment->isEnclosure()) { // DO NOT move xmlns declaration to root element. Making it // the default namespace here improves compatibility with // real-world feed readers. -- cgit v1.2.3-54-g00ecf