From 2ef1666749b9621820531e65edc84ac0b19e8fa8 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 20 Mar 2011 22:43:59 +0000 Subject: Fixes #3062 checks if data directory exists git-svn-id: http://code.elgg.org/elgg/trunk@8791 36083f99-b078-4883-b0ff-0f9b5a30f544 --- install/ElggInstaller.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'install/ElggInstaller.php') diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index 900ab6fb0..a09657f7e 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -1257,6 +1257,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'])); -- cgit v1.2.3