Bug 19532: (follow-up) Fix calls, tests, syspref settings, checks
[koha-ffzg.git] / opac / opac-restrictedpage.pl
index e9a325a..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'};
@@ -40,7 +40,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
         query           => $query,
         type            => "opac",
         authnotrequired => $withinNetwork,
-        debug           => 1,
     }
 );