diff options
author | Art4 <[email protected]> | 2015-02-19 23:17:43 +0100 |
---|---|---|
committer | Art4 <[email protected]> | 2015-02-19 23:17:43 +0100 |
commit | d9c042c4c536f1afbf206aeea09b0b127b7b6418 (patch) | |
tree | 9d7ef18c6d9d4c8f8f4d1c9a5dbfceeb9fd5acf4 /classes/feeditem | |
parent | cf42b79120290ee5866136a0c4656e6999f06045 (diff) | |
parent | 4ca621a36016de1fbb5447e1c1de0b607ba94a7c (diff) |
Merge branch 'master' into patch-1
Conflicts:
locale/de_DE/LC_MESSAGES/messages.po
Diffstat (limited to 'classes/feeditem')
-rw-r--r-- | classes/feeditem/rss.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index c9a7467cd..27a364b81 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -51,6 +51,14 @@ class FeedItem_RSS extends FeedItem_Common { } function get_title() { + $title = $this->xpath->query("title", $this->elem)->item(0); + + if ($title) { + return trim($title->nodeValue); + } + + // if the document has a default namespace then querying for + // title would fail because of reasons so let's try the old way $title = $this->elem->getElementsByTagName("title")->item(0); if ($title) { |