]> git.wh0rd.org Git - tt-rss.git/commitdiff
sanity check for DATABASE_BACKED_SESSIONS && SINGLE_USER_MODE
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 30 Mar 2006 06:24:23 +0000 (07:24 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 30 Mar 2006 06:24:23 +0000 (07:24 +0100)
backend.php
tt-rss.js

index 43b3b42907613e43fdea5c1ec4e46d6717ab68a9..44391c482085464e38511bd81265877ce4b80b20 100644 (file)
                        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;
        }
 
index 4c02a515f750e3b4cd7f0508b6d4775a9e99624c..08fdb945af050b1872a783f4529f34dd609e6724 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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;
                        }