]> git.mxchange.org Git - friendica-addons.git/commitdiff
langfilter: dont add languages when none are set to the settings
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 1 Jun 2018 16:05:45 +0000 (18:05 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 1 Jun 2018 16:05:45 +0000 (18:05 +0200)
langfilter/langfilter.php

index 64226144be82d8ed946afcdd3390f6fa66abe17d..42ffb9bb49f51d30f4ae849311153c97dc3679c3 100644 (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"),