langfilter: dont add languages when none are set to the settings
This commit is contained in:
parent
97108080c2
commit
745fe99e08
1 changed files with 0 additions and 4 deletions
|
@ -50,10 +50,6 @@ function langfilter_addon_settings(App $a, &$s)
|
||||||
$minconfidence = PConfig::get(local_user(), 'langfilter', 'minconfidence') * 100;
|
$minconfidence = PConfig::get(local_user(), 'langfilter', 'minconfidence') * 100;
|
||||||
$minlength = PConfig::get(local_user(), 'langfilter', 'minlength');
|
$minlength = PConfig::get(local_user(), 'langfilter', 'minlength');
|
||||||
|
|
||||||
if (!$languages) {
|
|
||||||
$languages = 'en,de,fr,it,es';
|
|
||||||
}
|
|
||||||
|
|
||||||
$t = get_markup_template("settings.tpl", "addon/langfilter/");
|
$t = get_markup_template("settings.tpl", "addon/langfilter/");
|
||||||
$s .= replace_macros($t, [
|
$s .= replace_macros($t, [
|
||||||
'$title' => L10n::t("Language Filter"),
|
'$title' => L10n::t("Language Filter"),
|
||||||
|
|
Loading…
Reference in a new issue