From 64a6d5d756404586e8395d62114894dd6931904c Mon Sep 17 00:00:00 2001 From: rangi Date: Fri, 16 Jul 2004 21:15:26 +0000 Subject: [PATCH] Contains the function to get the language template, and set the cookie --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 2b3634245d..4774198091 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -111,7 +111,7 @@ C4::Auth - Authenticates Koha users sub get_template_and_user { my $in = shift; - my $template = gettemplate($in->{'template_name'}, $in->{'type'}); + my $template = gettemplate($in->{'template_name'}, $in->{'type'},$in->{'query'}); my ($user, $cookie, $sessionID, $flags) = checkauth($in->{'query'}, $in->{'authnotrequired'}, $in->{'flagsrequired'}, $in->{'type'}); @@ -325,7 +325,7 @@ sub checkauth { push @inputs, {name => $name , value => $value}; } - my $template = gettemplate($template_name, $type); + my $template = gettemplate($template_name, $type,$query); $template->param(INPUTS => \@inputs); $template->param(loginprompt => 1) unless $info{'nopermission'}; -- 2.39.5