Merge pull request #11422 from annando/language
Fix: The language detection only searched for farsi
This commit is contained in:
commit
6617b6c088
1 changed files with 1 additions and 1 deletions
|
@ -1751,7 +1751,7 @@ class Item
|
|||
// which point it will be automatically available through `getAvailableLanguages()` and this should be removed.
|
||||
$availableLanguages['fa'] = 'fa';
|
||||
|
||||
$ld = new Language($availableLanguages);
|
||||
$ld = new Language(array_keys($availableLanguages));
|
||||
$languages = $ld->detect($naked_body)->limit(0, 3)->close();
|
||||
if (is_array($languages)) {
|
||||
return json_encode($languages);
|
||||
|
|
Loading…
Reference in a new issue