]> git.p6c8.net - jirafeau.git/blobdiff - lib/functions.php
Work around LiteSpeed's truncation of large files
[jirafeau.git] / lib / functions.php
index 1dd03e54b55af485ad276643fb2e726ff8b897fc..058d53e680966ca2a1e2db9391b58e6c689477f7 100644 (file)
@@ -569,6 +569,14 @@ function check_errors($cfg)
     if (!is_writable(VAR_ASYNC)) {
         add_error(t('ASYNC_DIR_W'), VAR_ASYNC);
     }
+
+    if ($cfg['enable_crypt'] && $cfg['litespeed_workaround']) {
+        add_error(t('INCOMPATIBLE_OPTIONS_W'), 'enable_crypt=true<br>litespeed_workaround=true');
+    }
+
+    if ($cfg['one_time_download'] && $cfg['litespeed_workaround']) {
+        add_error(t('INCOMPATIBLE_OPTIONS_W'), 'one_time_download=true<br>litespeed_workaround=true');
+    }
 }
 
 /**

patrick-canterino.de