Bug 30847: Don't get biblio/item info when placing holds
[koha-ffzg.git] / plugins / run.pl
index da265de..4570844 100755 (executable)
@@ -22,14 +22,13 @@ use Modern::Perl;
 use CGI qw ( -utf8 );
 
 use Koha::Plugins::Handler;
-use C4::Auth;
-use C4::Output;
-use C4::Debug;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
 use C4::Context;
 
-my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
+my $plugins_enabled = C4::Context->config("enable_plugins");
 
-my $cgi = new CGI;
+my $cgi = CGI->new;
 
 my $class  = $cgi->param('class');
 my $method = $cgi->param('method');
@@ -38,9 +37,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
     {   template_name   => "plugins/plugins-disabled.tt",
         query           => $cgi,
         type            => "intranet",
-        authnotrequired => 0,
         flagsrequired   => { plugins => $method },
-        debug           => 1,
     }
 );