projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e41b7b3
)
File and line number was not displayed for devel error messages.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Wed, 10 Dec 2008 14:50:41 +0000
(14:50 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Wed, 10 Dec 2008 14:50:41 +0000
(14:50 +0000)
includes/errors.inc
patch
|
blob
|
history
diff --git
a/includes/errors.inc
b/includes/errors.inc
index b5d2ff0a7c5d0c99effe27357dbc5d4782d8e95d..ae34c9d9933bc65c71ed829b7b2091d8a8dce4eb 100644
(file)
--- a/
includes/errors.inc
+++ b/
includes/errors.inc
@@
-46,11
+46,12
@@
function fmt_errors($center=true) {
}
$str = $msg[1];
$c = $msg_colors[$type];
}
$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];
$str .= ' '._('in file').': '.$msg[2].' '._('at line ').$msg[3];
+
$content .= "<tr><td " . ($center?"align='center' ":"").
" width='100%' bgcolor='{$c['bg']}'><font color='{$c['txt']}'>"
$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%'>"
}
$str = "<center><table border='1' cellpadding='3' cellspacing='0' style='border-collapse: collapse' bordercolor='{$c['bd']}' width='98%'>"