Remove reference to languagedetect in library folder

This commit is contained in:
Hypolite Petovan 2017-11-05 09:00:34 -05:00
parent 7d876aab98
commit cff1de034f
2 changed files with 0 additions and 5 deletions

View file

@ -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) {

View file

@ -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);