summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-20 05:29:52 +0100
committerAndrew Dolgov <[email protected]>2006-02-20 05:29:52 +0100
commit91d612b39e1dcc3b25d707019a071506d08f9dd5 (patch)
treebdfa76de8eea585a1c0d3f93f78741e34f17f9d3 /functions.js
parent2f3c902cdc9683457732ca831b0d9b359eb6e939 (diff)
print additional info on fatalError(3)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index 8d59bd321..26db6bb5f 100644
--- a/functions.js
+++ b/functions.js
@@ -524,8 +524,13 @@ function hideOrShowFeeds(doc, hide) {
}
-function fatalError(code) {
- window.location = "error.php?c=" + param_escape(code);
+function fatalError(code, params) {
+ if (!params) {
+ window.location = "error.php?c=" + param_escape(code);
+ } else {
+ window.location = "error.php?c=" + param_escape(code) +
+ "&p=" + param_escape(params);
+ }
}
function selectTableRow(r, do_select) {