From: Andrew Dolgov Date: Mon, 1 Nov 2010 09:18:06 +0000 (+0300) Subject: sanity_check: check whether ICONS_DIR is writable (closes #273) X-Git-Tag: 1.5.0~426 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f6370f36efcda60d89832cf272dddb23fe629911;p=tt-rss.git sanity_check: check whether ICONS_DIR is writable (closes #273) --- diff --git a/sanity_check.php b/sanity_check.php index 363c2266..65edbe90 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;