From c56f5e3c03177edf52172c8a164f66c354d0e147 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Wed, 22 Aug 2007 01:47:51 +0000 Subject: Bug 365378 – The 'languages' parameter is not necessary. Patch by Marc Schumann ; r=LpSolit; a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Config/Common.pm | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'Bugzilla/Config/Common.pm') diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index 8435b20a1..2e5e7d15d 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -49,8 +49,8 @@ use base qw(Exporter); check_sslbase check_priority check_severity check_platform check_opsys check_shadowdb check_urlbase check_webdotbase check_netmask check_user_verify_class check_image_converter - check_languages check_mail_delivery_method check_notification - check_timezone check_utf8 check_bug_status + check_mail_delivery_method check_notification check_timezone check_utf8 + check_bug_status ); # Checking functions for the various values @@ -304,27 +304,6 @@ sub check_image_converter { return ""; } -sub check_languages { - my ($lang) = @_; - my @languages = split(/[,\s]+/, trim($lang)); - if(!scalar(@languages)) { - return "You need to specify a language tag." - } - my $templatedir = bz_locations()->{'templatedir'}; - my %lang_seen; - my @validated_languages; - foreach my $language (@languages) { - if( ! -d "$templatedir/$language/custom" - && ! -d "$templatedir/$language/default") { - return "The template directory for $language does not exist"; - } - push(@validated_languages, $language) unless $lang_seen{$language}++; - } - # Rebuild the list of language tags, avoiding duplicates. - $_[0] = join(', ', @validated_languages); - return ""; -} - sub check_mail_delivery_method { my $check = check_multi(@_); return $check if $check; -- cgit v1.2.3-24-g4f1b