From 1357a263be61196ad7d02cbf19a6cf08d1e50a80 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 17 Sep 2013 12:28:31 +0400 Subject: [PATCH] include title when detecting article language --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index c8aa7dc2..6d067065 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -572,7 +572,7 @@ print "\n"; } - $entry_language = $lang->detect($entry_content, 1); + $entry_language = $lang->detect($entry_title . " " . $entry_content, 1); if (count($entry_language) > 0) { $entry_language = array_keys($entry_language); -- 2.39.5