Remove reference to languagedetect in library folder
This commit is contained in:
parent
7d876aab98
commit
cff1de034f
|
@ -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 New Issue
Block a user