when koha is completly configured, debuglevel come from context. So if
there is no debuglevel from context, it's nice to show errors!
---
C4/Context.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Context.pm b/C4/Context.pm
index 3cba0ff..a4aa894 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -27,7 +27,7 @@ BEGIN {
import CGI::Carp qw(fatalsToBrowser);
sub handle_errors {
my $msg = shift;
- my $debug_level =
C4::Context->preference("DebugLevel");
+ my $debug_level =
C4::Context->preference("DebugLevel") || 2 ;
print q(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
--
1.5.5.3
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches