Merge remote-tracking branch 'kc/new/bug_5995' into kcmaster
[srvgit] / opac / errors / 402.pl
index 8620f88..672705b 100755 (executable)
@@ -17,6 +17,8 @@
 
 
 use strict;
+use warnings;
+
 use CGI;
 use C4::Auth;
 use C4::Output;
@@ -34,4 +36,4 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     }
 );
 $template->param( admin => $admin );
-output_html_with_http_headers $query, $cookie, $template->output;
+output_with_http_headers $query, $cookie, $template->output, 'html', '402 Payment Required';