BUG Update installer to create the assets folder if its missing

This commit is contained in:
Maxime Rainville 2019-03-29 17:56:39 +13:00
parent fc6213c293
commit c84ad4278f

View File

@ -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);