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