summaryrefslogtreecommitdiff
path: root/classes/feeditem
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-25 14:43:59 +0400
committerAndrew Dolgov <[email protected]>2013-06-25 14:43:59 +0400
commitb584460302b674c8e9c52718d0e6682e427a913a (patch)
tree650282a5414320af80b4ee86074692da549cd114 /classes/feeditem
parent420940fa90d1c2e8758b7a5a363190bdea8de135 (diff)
parser: remove atom <source> element
Diffstat (limited to 'classes/feeditem')
-rw-r--r--classes/feeditem/common.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/feeditem/common.php b/classes/feeditem/common.php
index 0787a42cb..f8fd3c62a 100644
--- a/classes/feeditem/common.php
+++ b/classes/feeditem/common.php
@@ -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() {