]> git.mxchange.org Git - friendica.git/commitdiff
Remove reference to languagedetect in library folder
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 5 Nov 2017 14:00:34 +0000 (09:00 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 5 Nov 2017 14:00:34 +0000 (09:00 -0500)
include/items.php
src/App.php

index 4af4c6ab37c17b2968d3aae04d859797d9d03570..5d3b627bd816498ead8aa4713b727178ff9afe57 100644 (file)
@@ -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) {
index 30d66dd2d50d5421a63e4165d1667c7aa208eb52..5c1c2bb9c1d7ac8ea4ab235c368d93329a47ef76 100644 (file)
@@ -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);