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:
parent
3d83fe608e
commit
8928de9d1f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ function register_module($settings)
|
||||||
|
|
||||||
// Prepare any extra files
|
// Prepare any extra files
|
||||||
if(!file_exists($paths->extra_data_directory))
|
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) {
|
foreach($settings["extra_data"] ?? [] as $filename => $file_def) {
|
||||||
$destination_filename = "$paths->extra_data_directory/{$settings["id"]}/$filename";
|
$destination_filename = "$paths->extra_data_directory/{$settings["id"]}/$filename";
|
||||||
|
|
Loading…
Reference in a new issue