Skip to content
Snippets Groups Projects
Commit 7871ed81 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

Merge pull request #430 from dzaikos/rss-get-title

Updated FeedItem_RSS::get_title()
parents 50547484 2b4853f5
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ class FeedItem_RSS extends FeedItem_Common { ...@@ -51,7 +51,7 @@ class FeedItem_RSS extends FeedItem_Common {
} }
function get_title() { function get_title() {
$title = $this->elem->getElementsByTagName("title")->item(0); $title = $this->xpath->query("title", $this->elem)->item(0);
if ($title) { if ($title) {
return trim($title->nodeValue); return trim($title->nodeValue);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment