From 88c11a3c80879bb8487ba7edfc51b10e34996058 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Tue, 2 Feb 2010 16:54:16 -0500 Subject: [PATCH] Bug 2505: Enables warnings in the opac error pages. Content-Type: text/plain; charset="utf-8" No warnings were generated in the logs, except that the template for 402 does not exist. I will follow this up with another patch. --- opac/errors/400.pl | 2 ++ opac/errors/401.pl | 2 ++ opac/errors/402.pl | 2 ++ opac/errors/403.pl | 2 ++ opac/errors/404.pl | 2 ++ opac/errors/500.pl | 2 ++ 6 files changed, 12 insertions(+), 0 deletions(-) diff --git a/opac/errors/400.pl b/opac/errors/400.pl index 16c169c..b48917e 100755 --- a/opac/errors/400.pl +++ b/opac/errors/400.pl @@ -17,6 +17,8 @@ use strict; +use warnings; + use CGI; use C4::Auth; use C4::Output; diff --git a/opac/errors/401.pl b/opac/errors/401.pl index c6573f4..ec1b8c2 100755 --- a/opac/errors/401.pl +++ b/opac/errors/401.pl @@ -17,6 +17,8 @@ use strict; +use warnings; + use CGI; use C4::Auth; use C4::Output; diff --git a/opac/errors/402.pl b/opac/errors/402.pl index 8620f88..595928b 100755 --- a/opac/errors/402.pl +++ b/opac/errors/402.pl @@ -17,6 +17,8 @@ use strict; +use warnings; + use CGI; use C4::Auth; use C4::Output; diff --git a/opac/errors/403.pl b/opac/errors/403.pl index d223ffb..e4de04c 100755 --- a/opac/errors/403.pl +++ b/opac/errors/403.pl @@ -17,6 +17,8 @@ use strict; +use warnings; + use CGI; use C4::Auth; use C4::Output; diff --git a/opac/errors/404.pl b/opac/errors/404.pl index 0c5408c..2edfdbf 100755 --- a/opac/errors/404.pl +++ b/opac/errors/404.pl @@ -17,6 +17,8 @@ use strict; +use warnings; + use CGI; use C4::Auth; use C4::Output; diff --git a/opac/errors/500.pl b/opac/errors/500.pl index d3c5ce1..227dd37 100755 --- a/opac/errors/500.pl +++ b/opac/errors/500.pl @@ -17,6 +17,8 @@ use strict; +use warnings; + use CGI; use C4::Auth; use C4::Output; -- 1.5.6.5