From 0c0418bdfbb40f7fae02cca4cf1a09746bae8b3a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 6 Dec 2010 15:51:42 -0500 Subject: correctly generate enclosure in Activity::asString() --- lib/activity.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/activity.php b/lib/activity.php index 1b4651d89..e29bc1a25 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -478,7 +478,8 @@ class Activity foreach ($this->enclosures as $enclosure) { if (is_string($enclosure)) { - $xs->element('link', array('href' => $enclosure)); + $xs->element('link', array('rel' => 'enclosure', + 'href' => $enclosure)); } else { $attributes = array('rel' => 'enclosure', 'href' => $enclosure->url, @@ -487,7 +488,7 @@ class Activity if ($enclosure->title) { $attributes['title'] = $enclosure->title; } - $xs->element('link', array('href' => $enclosure)); + $xs->element('link', $attributes); } } -- cgit v1.2.3-54-g00ecf