summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-08-19 10:18:32 +0400
committerAndrew Dolgov <[email protected]>2014-08-19 10:18:32 +0400
commitd5e490952aae542520b6dcaf9a9297f3b8199dfc (patch)
tree08862f38d14a81cfb6d193d380bc753829fef13d /include/rssfuncs.php
parenteb16bd9f010cab78b58efcb971faf5d067bcf604 (diff)
fix language detection; remove f_guid debugging
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index baf0cab06..d6e5a5443 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -563,9 +563,6 @@
$entry_guid = $item->get_id();
if (!$entry_guid) $entry_guid = $item->get_link();
if (!$entry_guid) $entry_guid = make_guid_from_title($item->get_title());
-
- _debug("f_guid $entry_guid", $debug_enabled);
-
if (!$entry_guid) continue;
$entry_guid = "$owner_uid,$entry_guid";
@@ -614,13 +611,7 @@
$entry_language = $lang->detect($entry_title . " " . $entry_content, 1);
if (count($entry_language) > 0) {
- $entry_language = array_keys($entry_language);
-
- // the fuck?
- if (is_array($entry_language))
- $entry_language = "";
- else
- $entry_language = db_escape_string(substr($entry_language[0], 0, 2));
+ @$entry_language = array_keys($entry_language)[0];
_debug("detected language: $entry_language", $debug_enabled);
} else {