From: mason <[EMAIL PROTECTED](none)>
---
C4/Context.pm | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/C4/Context.pm b/C4/Context.pm
index 3cba0ff..34e2cb6 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -35,11 +35,12 @@ BEGIN {
<head><title>Koha Error</title></head>
<body>
);
- if ($debug_level eq "2"){
+ if ($debug_level eq "2" || $debug_level = ''){
# debug 2 , print extra info too.
+ # If no debug value is set, assume debug-2 level,
# this is handy for web-install
problems occuring before the DB structure is built
my %versions = get_versions();
- # a little example table with various version info";
+ # a little example table with various
version info";
print "
<h1>Koha error</h1>
<p>The following fatal error
has occurred:</p>
@@ -58,7 +59,7 @@ BEGIN {
<h1>Koha error</h1>
<p>The following fatal error
has occurred:</p>
<pre><code>$msg</code></pre>";
- } else {
+ } elsif ($debug_level eq "0"){
print "<p>production mode - trapped
fatal error</p>";
}
print "</body></html>";
--
1.5.5.GIT
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches