diff options
author | Tobias Kappé <[email protected]> | 2018-08-12 14:54:13 +0100 |
---|---|---|
committer | Tobias Kappé <[email protected]> | 2018-08-12 15:27:26 +0100 |
commit | 22a866edb5ea406bbd30ca777b58099ce9f55d1b (patch) | |
tree | 9ab086fa761c402ef788e3f2dcc8069ffb38ba3a /classes/rssutils.php | |
parent | 32c0c07cc1fb1019a61b83814bdd7c3830b621e6 (diff) |
Store language of entries as indicated by the feed.
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-x | classes/rssutils.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php index b69bb25a0..6fa1e9f4f 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -637,8 +637,11 @@ class RSSUtils { $entry_link = rewrite_relative_url($site_url, $item->get_link()); + $entry_language = $item->get_language(); + _debug("title $entry_title", $debug_enabled); _debug("link $entry_link", $debug_enabled); + _debug("language $entry_language", $debug_enabled); if (!$entry_title) $entry_title = date("Y-m-d H:i:s", $entry_timestamp);; @@ -694,7 +697,6 @@ class RSSUtils { $base_entry_id = $row["id"]; $entry_stored_hash = $row["content_hash"]; $article_labels = Article::get_article_labels($base_entry_id, $owner_uid); - $entry_language = $row["lang"]; $existing_tags = Article::get_article_tags($base_entry_id, $owner_uid); $entry_tags = array_unique(array_merge($entry_tags, $existing_tags)); @@ -702,7 +704,6 @@ class RSSUtils { $base_entry_id = false; $entry_stored_hash = ""; $article_labels = array(); - $entry_language = ""; } $article = array("owner_uid" => $owner_uid, // read only |