]> git.wh0rd.org Git - tt-rss.git/commitdiff
include title when detecting article language
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 17 Sep 2013 08:28:31 +0000 (12:28 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 17 Sep 2013 08:28:31 +0000 (12:28 +0400)
include/rssfuncs.php

index c8aa7dc23786c0ed368be73b4a68314a761f0ee3..6d067065ed335f4f68c18f233851843608806528 100644 (file)
                                        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);