Bug 7514 Choose OPAC language with URL parameter

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

Tested:
- with and without cookie set
- different language codes

http://.../cgi-bin/koha/opac-changelanguage.pl?language=de-DE
will directly open the German OPAC.

http://.../cgi-bin/koha/opac-changelanguage.pl?language=en
will directly open the English OPAC.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Frédéric Demians 2012-02-09 11:03:34 +01:00 committed by Paul Poulain
parent 7f5ba31b0b
commit 8ec812d97d

View file

@ -22,7 +22,7 @@ use CGI;
my $query = new CGI;
my $language = $query->param('language');
my $url = $query->referer();
my $url = $query->referer() || '/';
# warn "Language : $query // $language // $url";
C4::Templates::setlanguagecookie( $query, $language, $url );