summaryrefslogtreecommitdiff
path: root/lib/rssaction.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-07-14 13:33:40 -0400
committerCraig Andrews <candrews@integralblue.com>2009-07-14 13:33:40 -0400
commit593af9feb6cdbb88e250501938722e656fe4a17a (patch)
tree8f65c960e4bb2b69962f7340a1ea2031ee1af475 /lib/rssaction.php
parente047ba52c7c3f5953336d46fd22715d880002720 (diff)
Moved the decision logic as to whether an attachment should be an enclosure to the File class
Diffstat (limited to 'lib/rssaction.php')
-rw-r--r--lib/rssaction.php2
1 files changed, 1 insertions, 1 deletions
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.