From: Tobias Diekershoff Date: Fri, 1 Jun 2018 16:05:45 +0000 (+0200) Subject: langfilter: dont add languages when none are set to the settings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=745fe99e081500da73dd9e167f733200e4f97b9c;p=friendica-addons.git langfilter: dont add languages when none are set to the settings --- diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index 64226144..42ffb9bb 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -50,10 +50,6 @@ function langfilter_addon_settings(App $a, &$s) $minconfidence = PConfig::get(local_user(), 'langfilter', 'minconfidence') * 100; $minlength = PConfig::get(local_user(), 'langfilter', 'minlength'); - if (!$languages) { - $languages = 'en,de,fr,it,es'; - } - $t = get_markup_template("settings.tpl", "addon/langfilter/"); $s .= replace_macros($t, [ '$title' => L10n::t("Language Filter"),