X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=config%2Fcfgroot%2Fheader.pl;h=974c4d8b22458ab33d1a65044858804f040af9cc;hb=bc9446c65ff048ebce8c0665cc0efe2231fb37de;hp=acccfc834756baad04abc0c1b430a28b73d2047a;hpb=e6461027b010b3a3fc80f89dc6266ba2001ada2e;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/config/cfgroot/header.pl b/config/cfgroot/header.pl index acccfc8347..974c4d8b22 100644 --- a/config/cfgroot/header.pl +++ b/config/cfgroot/header.pl @@ -59,12 +59,12 @@ if ($ENV{'SERVER_ADDR'} && $ENV{'HTTPS'} ne 'on') { &General::readhash("${swroot}/main/settings", \%settings); &General::readhash("${swroot}/ethernet/settings", \%ethsettings); &General::readhash("${swroot}/ppp/settings", \%pppsettings); -$language = $settings{'LANGUAGE'}; $hostname = $settings{'HOSTNAME'}; $hostnameintitle = 0; ### Initialize language -if ($language =~ /^(\w+)$/) {$language = $1;} +require "${swroot}/lang.pl"; +$language = &Lang::FindWebLanguage($settings{"LANGUAGE"}); ### Read English Files if ( -d "/var/ipfire/langs/en/" ) { @@ -263,7 +263,7 @@ sub getcgihash { return if ($ENV{'REQUEST_METHOD'} ne 'POST'); if (!$params->{'wantfile'}) { $CGI::DISABLE_UPLOADS = 1; - $CGI::POST_MAX = 512 * 1024; + $CGI::POST_MAX = 1024 * 1024; } else { $CGI::POST_MAX = 10 * 1024 * 1024; }