1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 10:21:29 +00:00

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

Updated FeedItem_RSS::get_title()
This commit is contained in:
Andrew Dolgov
2015-01-15 10:37:27 +03:00

View File

@@ -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);