Merge pull request #609 from tobiasd/20180601-issue4710

langfilter: dont add languages when none are set to the settings
pull/610/head
Hypolite Petovan 2018-06-01 12:19:38 -04:00 committed by GitHub
commit 1f4757c512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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"),