File and line number was not displayed for devel error messages.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 10 Dec 2008 14:50:41 +0000 (14:50 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 10 Dec 2008 14:50:41 +0000 (14:50 +0000)
includes/errors.inc

index b5d2ff0a7c5d0c99effe27357dbc5d4782d8e95d..ae34c9d9933bc65c71ed829b7b2091d8a8dce4eb 100644 (file)
@@ -46,11 +46,12 @@ function fmt_errors($center=true) {
                }
            $str = $msg[1];
                $c = $msg_colors[$type];
-               if ($msg[0]<E_USER_ERROR && $msg[2]!=null)
+               if ($msg[0] < E_USER_ERROR && $msg[2] != null)
                  $str .= ' '._('in file').': '.$msg[2].' '._('at line ').$msg[3];
+
                $content .= "<tr><td  " . ($center?"align='center' ":"").
                  " width='100%' bgcolor='{$c['bg']}'><font color='{$c['txt']}'>"
-                 .$msg[1]."</font></td></tr>";
+                 .$str."</font></td></tr>";
        }
 
        $str = "<center><table border='1' cellpadding='3' cellspacing='0' style='border-collapse: collapse' bordercolor='{$c['bd']}' width='98%'>"