Merge commit 'br3nda/0.8.x-backgroundfix' into 0.8.x

* commit 'br3nda/0.8.x-backgroundfix':
  also check for write permission to background folder
This commit is contained in:
Zach Copley 2009-06-30 14:50:28 -07:00
commit 4405648afb
1 changed files with 6 additions and 0 deletions

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;
}