sanity_check: check whether ICONS_DIR is writable (closes #273)
This commit is contained in:
parent
7aabaa09e1
commit
f6370f36ef
|
@ -100,6 +100,10 @@
|
||||||
$err_msg = "config: DEFAULT_UPDATE_METHOD should be either 0 or 1.";
|
$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) {
|
if ($err_msg) {
|
||||||
print "<b>Fatal Error</b>: $err_msg\n";
|
print "<b>Fatal Error</b>: $err_msg\n";
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue