1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

build: fix creation of extra data directory

This commit is contained in:
Starbeamrainbowlabs 2020-07-08 23:33:27 +01:00
parent 3d83fe608e
commit 8928de9d1f
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -37,7 +37,7 @@ function register_module($settings)
// Prepare any extra files
if(!file_exists($paths->extra_data_directory))
mkdir($paths->extra_data_directory, 0750);
mkdir($paths->extra_data_directory, 0750, true);
foreach($settings["extra_data"] ?? [] as $filename => $file_def) {
$destination_filename = "$paths->extra_data_directory/{$settings["id"]}/$filename";