diff options
author | Andrew Dolgov <[email protected]> | 2014-07-16 11:49:37 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-07-16 11:49:37 +0400 |
commit | 96ad6edc6c4562636312af3f23fffcdc9d4626a9 (patch) | |
tree | f19d0c80cac3b17524dd64cf6e30a988354e1379 /classes/feeditem/atom.php | |
parent | 2d3ff643609a6767ca0d47cd3a38a3832350be72 (diff) | |
parent | 1e871938153497d46537fc313a79155717d532d0 (diff) |
Merge branch 'tribut-enclosure-size'
Diffstat (limited to 'classes/feeditem/atom.php')
-rw-r--r-- | classes/feeditem/atom.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php index 48e3aa567..dfac7149f 100644 --- a/classes/feeditem/atom.php +++ b/classes/feeditem/atom.php @@ -145,6 +145,8 @@ class FeedItem_Atom extends FeedItem_Common { $enc->type = $enclosure->getAttribute("type"); $enc->link = $enclosure->getAttribute("url"); $enc->length = $enclosure->getAttribute("length"); + $enc->height = $enclosure->getAttribute("height"); + $enc->width = $enclosure->getAttribute("width"); $desc = $this->xpath->query("media:description", $enclosure)->item(0); if ($desc) $enc->title = strip_tags($desc->nodeValue); @@ -164,6 +166,8 @@ class FeedItem_Atom extends FeedItem_Common { $enc->type = $content->getAttribute("type"); $enc->link = $content->getAttribute("url"); $enc->length = $content->getAttribute("length"); + $enc->height = $content->getAttribute("height"); + $enc->width = $content->getAttribute("width"); $desc = $this->xpath->query("media:description", $content)->item(0); if ($desc) { @@ -184,6 +188,8 @@ class FeedItem_Atom extends FeedItem_Common { $enc->type = "image/generic"; $enc->link = $enclosure->getAttribute("url"); + $enc->height = $enclosure->getAttribute("height"); + $enc->width = $enclosure->getAttribute("width"); array_push($encs, $enc); } |