Bug 29660: Remove hostitemsflag
[koha-ffzg.git] / serials / checkexpiration.pl
index aeebd2f..6ce76af 100755 (executable)
@@ -44,11 +44,11 @@ The date to filter on.
 
 use Modern::Perl;
 use CGI qw ( -utf8 );
-use C4::Auth;
-use C4::Serials; # GetExpirationDate
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Serials qw( SearchSubscriptions GetExpirationDate );
+use C4::Output qw( output_html_with_http_headers );
 use C4::Context;
-use Koha::DateUtils;
+use Koha::DateUtils qw( dt_from_string );
 
 use DateTime;
 
@@ -60,7 +60,6 @@ my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user (
         query           => $query,
         type            => "intranet",
         flagsrequired   => { serials => 'check_expiration' },
-        debug           => 1,
     }
 );