Browse Source

Better way to find feed element when determining entry language.

Tobias Kappé 1 year ago
parent
commit
54e943bd97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/feeditem/atom.php

+ 1 - 1
classes/feeditem/atom.php

@@ -205,7 +205,7 @@ class FeedItem_Atom extends FeedItem_Common {
 			return $lang;
 		} else {
 			// Fall back to the language declared on the feed, if any.
-			return $this->doc->firstChild->getAttributeNS(self::NS_XML, "lang");
+			return $this->elem->parentNode->getAttributeNS(self::NS_XML, "lang");
 		}
 	}
 }