diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2010-11-01 12:18:06 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2010-11-01 12:18:06 +0300 |
| commit | f6370f36efcda60d89832cf272dddb23fe629911 (patch) | |
| tree | 8429764d8a1cfea0380badcedb4aba9eb911101a | |
| parent | 7aabaa09e13482291194c3c8d86a0e8421ea009c (diff) | |
sanity_check: check whether ICONS_DIR is writable (closes #273)
| -rw-r--r-- | sanity_check.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 "<b>Fatal Error</b>: $err_msg\n"; exit; |