From 7a43c6b805173f582a49ffe2d320405854f541bf Mon Sep 17 00:00:00 2001 From: ischommer Date: Tue, 14 Oct 2008 12:03:19 +0000 Subject: [PATCH] ENHANCEMENT Removing installer dependency on /tutorial folder - only requires it to be writeable if it exists now. This means we can use the installer for custom projects as well git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@64222 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 1db954f..efa53d2 100644 --- a/install.php +++ b/install.php @@ -151,7 +151,7 @@ class InstallRequirements { $this->requireFile('jsparty', array("File permissions", "jsparty/ folder exists", "There's no jsparty folder.")); $this->requireWriteable('.htaccess', array("File permissions", "Is the .htaccess file writeable?", null)); $this->requireWriteable('mysite', array("File permissions", "Is the mysite/ folder writeable?", null)); - $this->requireWriteable('tutorial', array("File permissions", "Is the tutorial/ folder writeable?", null)); + if(file_exists('tutorial')) $this->requireWriteable('tutorial', array("File permissions", "Is the tutorial/ folder writeable?", null)); $this->requireWriteable('assets', array("File permissions", "Is the assets/ folder writeable?", null)); $this->requireTempFolder(array('File permissions', 'Is the temporary folder writeable?', null));