X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=errors%2F400.pl;h=7c947dbf29ef12fda8d930f12cd5c3bc4188ff74;hb=1a3b92bc76c3db628d2ffcf6d086840952ad9283;hp=122a1fe1270f64430063e743df21666ac164ccd6;hpb=743ad9e827f3144d1ee0ab2a48169c06c65e5512;p=koha.git diff --git a/errors/400.pl b/errors/400.pl index 122a1fe127..7c947dbf29 100755 --- a/errors/400.pl +++ b/errors/400.pl @@ -18,7 +18,7 @@ use strict; use warnings; -use CGI; +use CGI qw ( -utf8 ); use C4::Auth; use C4::Output; use C4::Context; @@ -27,12 +27,15 @@ my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => 'errors/400.tmpl', + template_name => 'errors/errorpage.tt', query => $query, type => 'intranet', authnotrequired => 1, debug => 1, } ); -$template->param( admin => $admin ); +$template->param ( + admin => $admin, + errno => 400, +); output_with_http_headers $query, $cookie, $template->output, 'html', '400 Bad Request';