adding LibraryName variable in the template
[koha-ffzg.git] / C4 / Auth.pm
index da92e5c..2b36342 100644 (file)
@@ -124,9 +124,12 @@ sub get_template_and_user {
                my ($borr, $flags) = getpatroninformation(undef, $borrowernumber);
                my @bordat;
                $bordat[0] = $borr;
-
-               $template->param(USER_INFO => \@bordat);
+               $template->param(USER_INFO => \@bordat,
+               );
        }
+       $template->param(
+                            LibraryName => C4::Context->preference("LibraryName"),
+               );
        return ($template, $borrowernumber, $cookie);
 }