From 03c3ae9bfed1ad4f60cd57d64f9f7746ea95b91d Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 5 Oct 2017 14:58:44 +0200 Subject: [PATCH] Revert "Remove reference to library/langdet folder" --- langfilter/langfilter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index fb1ec47e..d4fe942d 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -7,6 +7,8 @@ * License: MIT */ +require_once('library/langdet/Text/LanguageDetect.php'); + /* Define the hooks we want to use * that is, we have settings, we need to save the settings and we want * to modify the content of a posting when friendica prepares it. @@ -108,7 +110,7 @@ function langfilter_prepare_body(&$a,&$b) { $spoken_config = get_pconfig(local_user(),'langfilter','languages'); $minconfidence = get_pconfig(local_user(),'langfilter','minconfidence'); - # Don't filter if no spoken languages are configured + # Don't filter if no spoken languages are configured if ( ! $spoken_config ) return; $spoken_languages = explode(',', $spoken_config); -- 2.43.5