[Koha-patches] [PATCH] Bug 2505: Enables warnings in the opac error pages.
Garry Collum
gcollum at gmail.com
Tue Feb 2 23:02:00 CET 2010
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
More information about the Koha-patches
mailing list