parser: remove atom <source> element

This commit is contained in:
Andrew Dolgov 2013-06-25 14:43:59 +04:00
parent 420940fa90
commit b584460302

View 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() {