diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-20 22:43:59 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-20 22:43:59 +0000 |
commit | 2ef1666749b9621820531e65edc84ac0b19e8fa8 (patch) | |
tree | f8892b9a951e591f327726d2358022132401e683 /install/ElggInstaller.php | |
parent | ee8c54c3f564288798c6baec26b2b4e0ff327f78 (diff) | |
download | elgg-2ef1666749b9621820531e65edc84ac0b19e8fa8.tar.gz elgg-2ef1666749b9621820531e65edc84ac0b19e8fa8.tar.bz2 |
Fixes #3062 checks if data directory exists
git-svn-id: http://code.elgg.org/elgg/trunk@8791 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install/ElggInstaller.php')
-rw-r--r-- | install/ElggInstaller.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index 900ab6fb0..a09657f7e 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -1258,6 +1258,13 @@ class ElggInstaller { } // check that data root is writable + if (!file_exists($submissionVars['dataroot'])) { + $msg = elgg_echo('install:error:datadirectoryexists', array($submissionVars['dataroot'])); + register_error($msg); + return FALSE; + } + + // check that data root is writable if (!is_writable($submissionVars['dataroot'])) { $msg = elgg_echo('install:error:writedatadirectory', array($submissionVars['dataroot'])); register_error($msg); |