mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8890 from open-sausages/pulls/4/get-installer-to-self-create-assets-folder
BUG Update installer to create the assets folder if its missing
This commit is contained in:
commit
afb3c825c9
@ -283,6 +283,10 @@ class InstallRequirements
|
||||
array("File permissions", "Is the assets/ directory writeable?", null),
|
||||
true
|
||||
);
|
||||
// Make sure asset path actually exists
|
||||
if (!file_exists(ASSETS_PATH)) {
|
||||
mkdir(ASSETS_PATH);
|
||||
}
|
||||
|
||||
// Ensure all assets files are writable
|
||||
$innerIterator = new RecursiveDirectoryIterator(ASSETS_PATH, RecursiveDirectoryIterator::SKIP_DOTS);
|
||||
|
Loading…
Reference in New Issue
Block a user