Bug 15288: Error pages: Code duplication removal and better translatability
[koha-equinox.git] / errors / 401.pl
index 88c88d8..fcd2d88 100755 (executable)
@@ -26,12 +26,15 @@ my $query = CGI->new;
 my $admin = C4::Context->preference('KohaAdminEmailAddress');
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {
-        template_name   => 'errors/401.tt',
+        template_name   => 'errors/errorpage.tt',
         query           => $query,
         type            => 'intranet',
         authnotrequired => 1,
         debug           => 1,
     }
 );
-$template->param( admin => $admin );
+$template->param (
+    admin => $admin,
+    errno => 401,
+);
 output_with_http_headers $query, $cookie, $template->output, 'html', '401 Unauthorized';