Bug 28854: Expose functionality to attach items to bundles
[koha-ffzg.git] / admin / usage_statistics.pl
index 58df265..582e92a 100755 (executable)
 use Modern::Perl;
 
 use CGI qw ( -utf8 );
-use C4::Auth;
-use C4::Output;
-use Koha::DateUtils qw( dt_from_string output_pref );
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
+use Koha::DateUtils qw( output_pref );
 use Koha::Libraries;
 
-my $query = new CGI;
+my $query = CGI->new;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {
         template_name   => "admin/usage_statistics.tt",
         query           => $query,
         type            => "intranet",
-        authnotrequired => 0,
         flagsrequired   => { parameters => 'manage_usage_stats' },
-        debug           => 1,
     }
 );