sanity check for DATABASE_BACKED_SESSIONS && SINGLE_USER_MODE

This commit is contained in:
Andrew Dolgov 2006-03-30 07:24:23 +01:00
parent 061c26766e
commit 8a414837ec
2 changed files with 6 additions and 2 deletions

View File

@ -3912,6 +3912,10 @@
return "config: you have enabled DISABLE_SESSIONS. Please disable this option.";
}
if (DATABASE_BACKED_SESSIONS && SINGLE_USER_MODE) {
return "config: DATABASE_BACKED_SESSIONS is incompatible with SINGLE_USER_MODE";
}
return false;
}

View File

@ -153,14 +153,14 @@ function backend_sanity_check_callback() {
try {
if (!xmlhttp.responseXML) {
fatalError(3, "D001;" + xmlhttp.responseText);
fatalError(3, "D001: " + xmlhttp.responseText);
return;
}
var reply = xmlhttp.responseXML.firstChild;
if (!reply) {
fatalError(3, "D002;" + xmlhttp.responseText);
fatalError(3, "D002: " + xmlhttp.responseText);
return;
}