Bug 29408: Add JSDoc documentation for kohaTable function
[koha-ffzg.git] / opac / opac-ratings-ajax.pl
index 003bdd6..dcbeaeb 100755 (executable)
@@ -28,10 +28,9 @@ use Modern::Perl;
 use CGI qw ( -utf8 );
 use CGI::Cookie;  # need to check cookies before having CGI parse the POST request
 
-use C4::Auth qw(:DEFAULT check_cookie_auth);
+use C4::Auth qw( get_template_and_user check_cookie_auth );
 use C4::Context;
-use C4::Debug;
-use C4::Output qw(:html :ajax pagination_bar);
+use C4::Output qw( is_ajax output_ajax_with_http_headers );
 
 use Koha::Ratings;
 
@@ -111,7 +110,7 @@ sub ajax_auth_cgi {
     my %cookies      = CGI::Cookie->fetch;
     my $input        = CGI->new;
     my $sessid = $cookies{'CGISESSID'}->value || $input->param('CGISESSID');
-    my ( $auth_status, $auth_sessid ) =
+    my ( $auth_status ) =
       check_cookie_auth( $sessid, $needed_flags );
     return $input, $auth_status;
 }