also check for write permission to background folder

This commit is contained in:
Brenda Wallace 2009-06-26 22:42:52 +12:00
parent bb04f68e93
commit 3a3614fc55

View File

@ -72,6 +72,12 @@ function checkPrereqs()
<?
$pass = false;
}
if (!is_writable(INSTALLDIR.'/background/')) {
?><p class="error">Cannot write background directory: <code><?php echo INSTALLDIR; ?>/background/</code></p>
<p>On your server, try this command: <code>chmod a+w <?php echo INSTALLDIR; ?>/background/</code></p>
<?
$pass = false;
}
return $pass;
}