Lines 984-991
sub checkauth {
Link Here
|
984 |
|
984 |
|
985 |
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl'; |
985 |
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl'; |
986 |
my $template = C4::Templates::gettemplate($template_name, $type, $query ); |
986 |
my $template = C4::Templates::gettemplate($template_name, $type, $query ); |
|
|
987 |
my @branchloop= Koha::BusinessLogic::Branch->read()->all; |
987 |
$template->param( |
988 |
$template->param( |
988 |
branchloop => GetBranchesLoop(), |
989 |
branchloop => \@branchloop, |
989 |
opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"), |
990 |
opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"), |
990 |
opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"), |
991 |
opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"), |
991 |
login => 1, |
992 |
login => 1, |