summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2007-08-22 03:47:51 +0200
committerwurblzap%gmail.com <>2007-08-22 03:47:51 +0200
commitc56f5e3c03177edf52172c8a164f66c354d0e147 (patch)
treecaef8b053a3031404d31d7c1d9dca2b202e44e70 /Bugzilla/Config
parent5a1fdacb12095b417382c15186e5aaaec7eed3a1 (diff)
downloadbugzilla-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 'Bugzilla/Config')
-rw-r--r--Bugzilla/Config/Common.pm25
1 files changed, 2 insertions, 23 deletions
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;