diff options
author | wurblzap%gmail.com <> | 2007-08-22 03:47:51 +0200 |
---|---|---|
committer | wurblzap%gmail.com <> | 2007-08-22 03:47:51 +0200 |
commit | c56f5e3c03177edf52172c8a164f66c354d0e147 (patch) | |
tree | caef8b053a3031404d31d7c1d9dca2b202e44e70 /editparams.cgi | |
parent | 5a1fdacb12095b417382c15186e5aaaec7eed3a1 (diff) | |
download | bugzilla-c56f5e3c03177edf52172c8a164f66c354d0e147.tar.gz bugzilla-c56f5e3c03177edf52172c8a164f66c354d0e147.tar.xz |
Bug 365378 â The 'languages' parameter is not necessary.
Patch by Marc Schumann <wurblzap@gmail.com>;
r=LpSolit; a=LpSolit
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-x | editparams.cgi | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/editparams.cgi b/editparams.cgi index 38d486656..819c8c645 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -75,7 +75,6 @@ if ($action eq 'save' && $current_module) { my @changes = (); my @module_param_list = "Bugzilla::Config::${current_module}"->get_param_list(1); - my $update_lang_user_pref = 0; foreach my $i (@module_param_list) { my $name = $i->{'name'}; my $value = $cgi->param($name); @@ -135,22 +134,11 @@ if ($action eq 'save' && $current_module) { if (($name eq "shutdownhtml") && ($value ne "")) { $vars->{'shutdown_is_active'} = 1; } - if ($name eq 'languages') { - $update_lang_user_pref = 1; - } if ($name eq 'duplicate_or_move_bug_status') { Bugzilla::Status::add_missing_bug_status_transitions($value); } } } - if ($update_lang_user_pref) { - # We have to update the list of languages users can choose. - # If some users have selected a language which is no longer available, - # then we delete it (the user pref is reset to the default one). - my @languages = split(/[\s,]+/, Bugzilla->params->{'languages'}); - map {trick_taint($_)} @languages; - add_setting('lang', \@languages, $languages[0], undef, 1); - } $vars->{'message'} = 'parameters_updated'; $vars->{'param_changed'} = \@changes; |