From: Mason James <[EMAIL PROTECTED]>

---
 C4/Context.pm |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/C4/Context.pm b/C4/Context.pm
index 3cba0ff..cb4bb19 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"){
-                                       # debug 2 , print extra info too.
+                               if ($debug_level eq "2"|| $debug_level eq ""){
+                #   If no debug value is set, assume debug-level 2 (most)
+                #   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,6 +59,7 @@ BEGIN {
                                                <h1>Koha error</h1>
                                                <p>The following fatal error 
has occurred:</p> 
                         <pre><code>$msg</code></pre>";
+                               # debug falls thru to '0' by default
                                } else {
                                        print "<p>production mode - trapped 
fatal error</p>";
                                }       
-- 
1.5.5.GIT

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to