Bug 32070: Consistent classes for primary buttons: Acquisitions
[koha-ffzg.git] / opac / opac-restrictedpage.pl
index 19d0f72..b438b7f 100755 (executable)
@@ -20,8 +20,8 @@
 use Modern::Perl;
 
 use CGI;
-use C4::Auth;
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
 
 my $localNetwork  = C4::Context->preference('RestrictedPageLocalIPs');
 my $userIP = $ENV{'REMOTE_ADDR'};
@@ -33,14 +33,13 @@ foreach my $IPRange ( split( ',', $localNetwork ) )
     last if $withinNetwork;
 }
 
-my $query = new CGI;
+my $query = CGI->new;
 my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
     {
         template_name   => "opac-restrictedpage.tt",
         query           => $query,
         type            => "opac",
         authnotrequired => $withinNetwork,
-        debug           => 1,
     }
 );