]> git.wh0rd.org Git - tt-rss.git/commitdiff
parser: remove atom <source> element
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Jun 2013 10:43:59 +0000 (14:43 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Jun 2013 10:43:59 +0000 (14:43 +0400)
classes/feeditem/common.php

index 0787a42cbf9619b04a4ed2acbeaeed67ba7efc07..f8fd3c62a79de5bd6ffde77598eefe6f04a0e52f 100644 (file)
@@ -8,6 +8,12 @@ abstract class FeedItem_Common extends FeedItem {
                $this->elem = $elem;
                $this->xpath = $xpath;
                $this->doc = $doc;
+
+               $source = $elem->getElementsByTagName("source")->item(0);
+
+               // we don't need <source> element
+               if ($source)
+                       $elem->removeChild($source);
        }
 
        function get_author() {