summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-02-24 18:16:33 +0100
committerAndrew Dolgov <[email protected]>2007-02-24 18:16:33 +0100
commitb4c27af79aa9924b31959153622032d3c83ddc82 (patch)
treec82acb12d1b241d45d75ab7bc29bc3cfe89ac7cb /functions.js
parent8dc062e5274e6dd23972f2f1470ec8447c90ccfc (diff)
misc updater tweaks
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/functions.js b/functions.js
index 194d83157..de88e4e49 100644
--- a/functions.js
+++ b/functions.js
@@ -1526,16 +1526,17 @@ function storeInitParams(params, is_client) {
function fatalError(code, message) {
try {
- if (code != 6) {
-
+ if (code == 6) {
+ window.location.href = "login.php?rt=none";
+ } else if (code == 5) {
+ window.location.href = "update.php";
+ } else {
var fe = document.getElementById("fatal_error");
var fc = document.getElementById("fatal_error_msg");
fc.innerHTML = "Code " + code + ": " + message;
fe.style.display = "block";
- } else {
- window.location.href = "login.php?rt=none";
}
} catch (e) {