X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b0f652b639cd4d363235e8f9b53e14efc5085e1a..6c45a4db1503cc140e66b55386d55e4fbddbc680:/SL/User.pm diff --git a/SL/User.pm b/SL/User.pm index 18bf0697b..49ba33924 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -77,9 +77,9 @@ sub country_codes { my @dir = grep(!/(^\.\.?$|\..*)/, readdir(DIR)); foreach my $dir (@dir) { - next unless open(FH, "locale/$dir/LANGUAGE"); - @language = ; - close FH; + next unless open(my $fh, '<:encoding(UTF-8)', "locale/$dir/LANGUAGE"); + @language = <$fh>; + close $fh; $cc{$dir} = "@language"; } @@ -177,7 +177,6 @@ sub login { $self->{"menustyle"} eq "v3" ? "menuv3.pl" : $self->{"menustyle"} eq "neu" ? "menunew.pl" : $self->{"menustyle"} eq "js" ? "menujs.pl" : - $self->{"menustyle"} eq "xml" ? "menuXML.pl" : "menu.pl"; print $form->parse_html_template("dbupgrade/footer", { "menufile" => $menufile });