]> git.mxchange.org Git - friendica-addons.git/commitdiff
Revert "Remove reference to library/langdet folder"
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 5 Oct 2017 12:58:44 +0000 (14:58 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2017 12:58:44 +0000 (14:58 +0200)
langfilter/langfilter.php

index fb1ec47e18efb1bbfaa1fd128bd5a6ed6310fd98..d4fe942d0b23c1fe19b44461d9aaa5fe8cc3d052 100644 (file)
@@ -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);