From: Hypolite Petovan Date: Thu, 28 Sep 2017 03:18:38 +0000 (-0400) Subject: Remove reference to library/langdet folder X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=16f1163cb0695d33e2aaf2f03c5c357b89f93c85;p=friendica-addons.git Remove reference to library/langdet folder --- diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index d4fe942d..fb1ec47e 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -7,8 +7,6 @@ * 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. @@ -110,7 +108,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);