Commit 07fc6c82 authored by kiko%async.com.br's avatar kiko%async.com.br

Fix for bug 226217: check_languages bustage resulting from sanitizing in

bug 199502. Applied myk's suggestion in patch checked in. r=myk, a=myk.
parent fda0c6bd
......@@ -150,13 +150,13 @@ sub check_loginmethod {
}
sub check_languages {
my @languages = split /,/, trim($_);
my @languages = split /[,\s]+/, trim($_[0]);
if(!scalar(@languages)) {
return "You need to specify a language tag."
}
foreach my $language (@languages) {
if( ! -d 'template/'.trim($language).'/custom'
&& ! -d 'template/'.trim($language).'/default') {
if( ! -d "template/$language/custom"
&& ! -d "template/$language/default") {
return "The template directory for $language does not exist";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment