summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-07-22 10:28:17 -0500
committerEric Helgeson <erichelgeson@gmail.com>2009-07-22 10:28:17 -0500
commit829396106495a7b8090c31c383c0119912396cac (patch)
tree409fce658a5704024cb3d64121392485b2033799 /install.php
parentdb19d61e68fcf8398579c2c4968e73db7f7ed93b (diff)
parentabae9379478f2b87915930be81cd7be97f12ed8f (diff)
Merge commit 'origin/0.8.x' into 0.9.x
Diffstat (limited to 'install.php')
-rw-r--r--install.php21
1 files changed, 10 insertions, 11 deletions
diff --git a/install.php b/install.php
index bae296a35..1d3a531c5 100644
--- a/install.php
+++ b/install.php
@@ -70,17 +70,16 @@ function checkPrereqs()
$pass = false;
}
- if (!is_writable(INSTALLDIR.'/avatar/')) {
- ?><p class="error">Cannot write avatar directory: <code><?php echo INSTALLDIR; ?>/avatar/</code></p>
- <p>On your server, try this command: <code>chmod a+w <?php echo INSTALLDIR; ?>/avatar/</code></p>
- <?
- $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;
+ // Check the subdirs used for file uploads
+ $fileSubdirs = array('avatar', 'background', 'file');
+ foreach ($fileSubdirs as $fileSubdir) {
+ $fileFullPath = INSTALLDIR."/$fileSubdir/";
+ if (!is_writable($fileFullPath)) {
+ ?><p class="error">Cannot write <?php echo $fileSubdir; ?> directory: <code><?php echo $fileFullPath; ?></code></p>
+ <p>On your server, try this command: <code>chmod a+w <?php echo $fileFullPath; ?></code></p>
+ <?
+ $pass = false;
+ }
}
return $pass;