Bug 32046: Compiled CSS
[koha-ffzg.git] / admin / audio_alerts.pl
index 793d2d1..e28151b 100755 (executable)
@@ -20,8 +20,8 @@
 use Modern::Perl;
 
 use CGI;
-use C4::Auth;
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
 use Koha::AudioAlert;
 use Koha::AudioAlerts;
 
@@ -40,7 +40,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
         query           => $cgi,
         type            => "intranet",
         flagsrequired   => { parameters => 'manage_audio_alerts' },
-        debug           => 1,
     }
 );
 
@@ -62,6 +61,6 @@ if (@delete) {
     Koha::AudioAlerts->fix_precedences();
 }
 
-$template->param( AudioAlertsPage => 1, audio_alerts => scalar Koha::AudioAlerts->search() );
+$template->param( AudioAlertsPage => 1, audio_alerts => Koha::AudioAlerts->search() );
 
 output_html_with_http_headers $cgi, $cookie, $template->output;