forked from friendica/friendica-addons
Remove reference to library/langdet folder
This commit is contained in:
parent
a69a74a4b6
commit
16f1163cb0
|
@ -7,8 +7,6 @@
|
||||||
* License: MIT
|
* License: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('library/langdet/Text/LanguageDetect.php');
|
|
||||||
|
|
||||||
/* Define the hooks we want to use
|
/* Define the hooks we want to use
|
||||||
* that is, we have settings, we need to save the settings and we want
|
* 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.
|
* 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');
|
$spoken_config = get_pconfig(local_user(),'langfilter','languages');
|
||||||
$minconfidence = get_pconfig(local_user(),'langfilter','minconfidence');
|
$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;
|
if ( ! $spoken_config ) return;
|
||||||
$spoken_languages = explode(',', $spoken_config);
|
$spoken_languages = explode(',', $spoken_config);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue