]> git.wh0rd.org Git - tt-rss.git/commitdiff
add test for LOCK_DIRECTORY
authorAndrew Dolgov <fox@fakecake.org>
Wed, 14 Dec 2011 05:38:56 +0000 (09:38 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 14 Dec 2011 05:38:56 +0000 (09:38 +0400)
include/sanity_check.php

index aebe4f89db20be3957ea9b8737e1163186d541b7..224c13e9ff167caae09a2b6a6ead4fc8e6d867e0 100644 (file)
                        $err_msg = "ICONS_DIR defined in config.php is not writable (chmod -R 777 ".ICONS_DIR.").\n";
                }
 
+               if (!is_writable(LOCK_DIRECTORY)) {
+                       $err_msg = "LOCK_DIRECTORY defined in config.php is not writable (chmod -R 777 ".LOCK_DIRECTORY.").\n";
+               }
+
                if (ini_get("open_basedir")) {
                        $err_msg = "PHP configuration option open_basedir is not supported. Please disable this in PHP settings file (php.ini).";
                }