From cff1de034f2591e2e7e994faf987cdb74cf8b771 Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <mrpetovan@gmail.com>
Date: Sun, 5 Nov 2017 09:00:34 -0500
Subject: [PATCH] Remove reference to languagedetect in library folder

---
 include/items.php | 4 ----
 src/App.php       | 1 -
 2 files changed, 5 deletions(-)

diff --git a/include/items.php b/include/items.php
index 4af4c6ab37..5d3b627bd8 100644
--- a/include/items.php
+++ b/include/items.php
@@ -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) {
diff --git a/src/App.php b/src/App.php
index 30d66dd2d5..5c1c2bb9c1 100644
--- a/src/App.php
+++ b/src/App.php
@@ -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);