X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=circ%2Fcirculation-home.pl;h=239051d8503c12b077dbd0d0dd2295516df078e1;hb=0bc83b3673659f347979ad998dfc9d9400d4c024;hp=7d24d79663e91f98931b7281483ee872ec883b2c;hpb=796379697849d6ca0364a736aa72dfecf28134e6;p=koha-ffzg.git diff --git a/circ/circulation-home.pl b/circ/circulation-home.pl index 7d24d79663..239051d850 100755 --- a/circ/circulation-home.pl +++ b/circ/circulation-home.pl @@ -18,18 +18,18 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use C4::Auth; -use C4::Output; +use C4::Auth qw( get_template_and_user ); +use C4::Output qw( output_html_with_http_headers ); use C4::Context; use Koha::BiblioFrameworks; +use Koha::Checkouts; -my $query = new CGI; +my $query = CGI->new; my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { template_name => "circ/circulation-home.tt", query => $query, type => "intranet", - authnotrequired => 0, flagsrequired => { circulate => "circulate_remaining_permissions" }, } ); @@ -39,5 +39,4 @@ $template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find( 'FA' ) $template->{'VARS'}->{'AllowOfflineCirculation'} = C4::Context->preference('AllowOfflineCirculation'); - output_html_with_http_headers $query, $cookie, $template->output;