X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=html%2Fccbs.pm;h=1807e0953de82cfdbb066373c8c4af7ed4ba58a4;hb=a317762dab2b775334cc85a43b6fe2e3c2097eab;hp=65838027c25483dd55cc7f888b56d69ccf9ecf88;hpb=52c1d6c706b501f252e49ce576354435b2b25b59;p=ccbs diff --git a/html/ccbs.pm b/html/ccbs.pm index 6583802..1807e09 100755 --- a/html/ccbs.pm +++ b/html/ccbs.pm @@ -17,7 +17,7 @@ require '../config.pm'; # Check for language settings my %cookies = fetch CGI::Cookie; my $lang = defined($cookies{'language'}) ? $cookies{'language'}->value : undef; -if (defined($lang) && ($lang eq 'nb_NO' || $lang eq 'en_US')) { +if (defined($lang) && ($lang eq 'nb_NO' || $lang eq 'nn_NO' || $lang eq 'en_US')) { POSIX::setlocale( &POSIX::LC_CTYPE , $lang . ".UTF-8" ); POSIX::setlocale( &POSIX::LC_MESSAGES , $lang . ".UTF-8" ); } else { @@ -45,7 +45,7 @@ sub print_see_other { my $location = shift; print CGI::header(-status=>'303 See other', - -location=>'http://ccbs.sesse.net/' . $location, + -location=>$ccbs::config::webroot . $location, -type=>'text/html; charset=utf-8'); }