include title when detecting article language

This commit is contained in:
Andrew Dolgov 2013-09-17 12:28:31 +04:00
parent 4f71d7431c
commit 1357a263be
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@
print "\n"; print "\n";
} }
$entry_language = $lang->detect($entry_content, 1); $entry_language = $lang->detect($entry_title . " " . $entry_content, 1);
if (count($entry_language) > 0) { if (count($entry_language) > 0) {
$entry_language = array_keys($entry_language); $entry_language = array_keys($entry_language);