This commit is contained in:
Michael Save 2012-03-20 03:39:44 +11:00
parent 9c62a4d2be
commit 58baab6a6e

View File

@ -344,7 +344,7 @@
continue; // don't override config
// are we able to write here?
if(!((file_exists($filename) && is_writable($filename)) || (!file_exists($filename) && is_writable($dirname)))) {
if(!((file_exists($filename) && is_writable($filename)) || (!file_exists($filename) && is_writable(dirname($filename))))) {
// nope
$errors[] = 'Cannot write to ' . $filename . '!';
}