Bug 33100: Unit test
[koha-ffzg.git] / tools / ajax-inventory.pl
index 63f371a..a8c8c9d 100755 (executable)
@@ -1,11 +1,11 @@
 #!/usr/bin/perl
 
 use Modern::Perl;
-use CGI;
-use C4::Auth;
+use CGI qw ( -utf8 );
+use C4::Auth qw( check_api_auth );
 use C4::Items qw( ModDateLastSeen );
 
-my $input = new CGI;
+my $input = CGI->new;
 
 # Authentication
 my ($status, $cookie, $sessionId) = C4::Auth::check_api_auth($input, { tools => 'inventory' });