From f6370f36efcda60d89832cf272dddb23fe629911 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Nov 2010 12:18:06 +0300 Subject: [PATCH] sanity_check: check whether ICONS_DIR is writable (closes #273) --- sanity_check.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sanity_check.php b/sanity_check.php index 363c22661..65edbe905 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -100,6 +100,10 @@ $err_msg = "config: DEFAULT_UPDATE_METHOD should be either 0 or 1."; } + if (!is_writable(ICONS_DIR)) { + $err_msg = "config: your ICONS_DIR (" . ICONS_DIR . ") is not writable.\n"; + } + if ($err_msg) { print "Fatal Error: $err_msg\n"; exit;