summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-27 21:09:22 +0400
committerAndrew Dolgov <[email protected]>2011-12-27 21:09:22 +0400
commit566faa14760112f81eea78fe441d5adc1b872da1 (patch)
treee3e9d12ef58f52324e503421fc28a3c5bed379a9 /include/sanity_check.php
parentb4a9e560aabfb26e8a55e742853785e074feb672 (diff)
implement neutral-format personal data export
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r--include/sanity_check.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index c12c09334..4fe28c307 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -21,6 +21,14 @@
$err_msg = "HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)";
}
+ if (!is_writable(CACHE_DIR . "/images")) {
+ $err_msg = "Image cache is not writable (chmod -R 777 ".CACHE_DIR."/images)";
+ }
+
+ if (!is_writable(CACHE_DIR . "/export")) {
+ $err_msg = "Data export cache is not writable (chmod -R 777 ".CACHE_DIR."/export)";
+ }
+
if (GENERATED_CONFIG_CHECK != EXPECTED_CONFIG_VERSION) {
$err_msg = "Configuration option checker sanity_config.php is outdated, please recreate it using ./utils/regen_config_checks.sh";
}