Bug 17600: Standardize our EXPORT_OK
[srvgit] / circ / transfer-slip.pl
index eb76253..1bd013d 100755 (executable)
 use Modern::Perl;
 
 use C4::Context;
-use C4::Output;
+use C4::Output qw( output_html_with_http_headers );
 use CGI qw ( -utf8 );
-use C4::Auth qw/:DEFAULT get_session/;
-use C4::Circulation;
+use C4::Auth qw( get_session get_template_and_user );
+use C4::Circulation qw( TransferSlip );
 
-use vars qw($debug);
-
-BEGIN {
-    $debug = $ENV{DEBUG} || 0;
-}
-
-my $input = new CGI;
+my $input = CGI->new;
 my $sessionID = $input->cookie("CGISESSID");
 my $session = get_session($sessionID);
 
@@ -46,7 +40,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
         query           => $input,
         type            => "intranet",
         flagsrequired   => { circulate => "circulate_remaining_permissions" },
-        debug           => $debug,
     }
 );