summaryrefslogtreecommitdiff
path: root/classes/feeditem
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-02 10:30:41 +0400
committerAndrew Dolgov <[email protected]>2013-05-02 10:30:41 +0400
commit99b82567944a96afb70ab7af1f0bd344ac3ab95a (patch)
treebdd32547c62644e171cf6ab132fc8910c3952e4a /classes/feeditem
parentf4ae0f053bc4c84bb5e28ca464bbedea9f3855db (diff)
feedparser: make content:encoded take precedence over description
Diffstat (limited to 'classes/feeditem')
-rw-r--r--classes/feeditem/rss.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php
index 5b43d0e8c..2f363b4f6 100644
--- a/classes/feeditem/rss.php
+++ b/classes/feeditem/rss.php
@@ -35,18 +35,17 @@ class FeedItem_RSS extends FeedItem_Common {
}
function get_content() {
- $content = $this->elem->getElementsByTagName("description")->item(0);
+ $content = $this->xpath->query("content:encoded", $this->elem)->item(0);
if ($content) {
return $content->nodeValue;
}
- $content = $this->xpath->query("content:encoded", $this->elem)->item(0);
+ $content = $this->elem->getElementsByTagName("description")->item(0);
if ($content) {
return $content->nodeValue;
}
-
}
function get_description() {