mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
Remove reference to languagedetect in library folder
This commit is contained in:
parent
7d876aab98
commit
cff1de034f
2 changed files with 0 additions and 5 deletions
|
@ -364,12 +364,8 @@ function item_add_language_opt(&$arr) {
|
|||
$postopts = "";
|
||||
}
|
||||
|
||||
require_once('library/langdet/Text/LanguageDetect.php');
|
||||
|
||||
$naked_body = preg_replace('/\[(.+?)\]/','', $arr['body']);
|
||||
$l = new Text_LanguageDetect();
|
||||
//$lng = $l->detectConfidence($naked_body);
|
||||
//$arr['postopts'] = (($lng['language']) ? 'lang=' . $lng['language'] . ';' . $lng['confidence'] : '');
|
||||
$lng = $l->detect($naked_body, 3);
|
||||
|
||||
if (sizeof($lng) > 0) {
|
||||
|
|
|
@ -211,7 +211,6 @@ class App {
|
|||
get_include_path() . PATH_SEPARATOR
|
||||
. $this->basepath . DIRECTORY_SEPARATOR . 'include' . PATH_SEPARATOR
|
||||
. $this->basepath . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR
|
||||
. $this->basepath . DIRECTORY_SEPARATOR . 'library/langdet' . PATH_SEPARATOR
|
||||
. $this->basepath);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue