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 = "";
|
$postopts = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once('library/langdet/Text/LanguageDetect.php');
|
|
||||||
|
|
||||||
$naked_body = preg_replace('/\[(.+?)\]/','', $arr['body']);
|
$naked_body = preg_replace('/\[(.+?)\]/','', $arr['body']);
|
||||||
$l = new Text_LanguageDetect();
|
$l = new Text_LanguageDetect();
|
||||||
//$lng = $l->detectConfidence($naked_body);
|
|
||||||
//$arr['postopts'] = (($lng['language']) ? 'lang=' . $lng['language'] . ';' . $lng['confidence'] : '');
|
|
||||||
$lng = $l->detect($naked_body, 3);
|
$lng = $l->detect($naked_body, 3);
|
||||||
|
|
||||||
if (sizeof($lng) > 0) {
|
if (sizeof($lng) > 0) {
|
||||||
|
|
|
@ -211,7 +211,6 @@ class App {
|
||||||
get_include_path() . PATH_SEPARATOR
|
get_include_path() . PATH_SEPARATOR
|
||||||
. $this->basepath . DIRECTORY_SEPARATOR . 'include' . PATH_SEPARATOR
|
. $this->basepath . DIRECTORY_SEPARATOR . 'include' . PATH_SEPARATOR
|
||||||
. $this->basepath . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR
|
. $this->basepath . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR
|
||||||
. $this->basepath . DIRECTORY_SEPARATOR . 'library/langdet' . PATH_SEPARATOR
|
|
||||||
. $this->basepath);
|
. $this->basepath);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue