sanity_check: check whether ICONS_DIR is writable (closes #273)

This commit is contained in:
Andrew Dolgov 2010-11-01 12:18:06 +03:00
parent 7aabaa09e1
commit f6370f36ef

View file

@ -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 "<b>Fatal Error</b>: $err_msg\n";
exit;