From 745fe99e081500da73dd9e167f733200e4f97b9c Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 1 Jun 2018 18:05:45 +0200 Subject: [PATCH] langfilter: dont add languages when none are set to the settings --- langfilter/langfilter.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index 64226144b..42ffb9bb4 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"),