aboutsummaryrefslogtreecommitdiffstats
path: root/library/simplepie/simplepie.inc
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-03 19:18:58 -0700
committerFriendika <info@friendika.com>2011-08-03 19:18:58 -0700
commitad1e827169d9f57c02746b51c5268bdbe2cd8ac9 (patch)
treea6770ab49f632a8a63f1738b05eec3de32c1ea8b /library/simplepie/simplepie.inc
parentd0b7723bbcd4e9a4fd5c97370bd1c738fdcdab28 (diff)
downloadvolse-hubzilla-ad1e827169d9f57c02746b51c5268bdbe2cd8ac9.tar.gz
volse-hubzilla-ad1e827169d9f57c02746b51c5268bdbe2cd8ac9.tar.bz2
volse-hubzilla-ad1e827169d9f57c02746b51c5268bdbe2cd8ac9.zip
several fixes for attachments
Diffstat (limited to 'library/simplepie/simplepie.inc')
-rw-r--r--library/simplepie/simplepie.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/library/simplepie/simplepie.inc b/library/simplepie/simplepie.inc
index c3ba02b7d..8a2739f52 100644
--- a/library/simplepie/simplepie.inc
+++ b/library/simplepie/simplepie.inc
@@ -5517,6 +5517,7 @@ class SimplePie_Item
$type = null;
$url = null;
$width = null;
+ $title = $title_parent;
$url = $this->sanitize($link['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($link));
if (isset($link['attribs']['']['type']))
@@ -5527,9 +5528,13 @@ class SimplePie_Item
{
$length = ceil($link['attribs']['']['length']);
}
+ if (isset($link['attribs']['']['title']))
+ {
+ $title = $this->sanitize($link['attribs']['']['title'], SIMPLEPIE_CONSTRUCT_TEXT);
+ }
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
- $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
+ $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title, $width);
}
}