aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-11-08 16:51:30 +0100
committerLaria Carolin Chabowski <laria@laria.me>2020-11-08 16:52:20 +0100
commit24b2b773ae9c306641692150f163df4dd6152b35 (patch)
tree4df986566dbfb9f53d74549ed382cac7f9f8f5b0
parent69049acef2ee593d65af7bcb62055dae6c9615b4 (diff)
downloadratatoeskr-cms-24b2b773ae9c306641692150f163df4dd6152b35.tar.gz
ratatoeskr-cms-24b2b773ae9c306641692150f163df4dd6152b35.tar.bz2
ratatoeskr-cms-24b2b773ae9c306641692150f163df4dd6152b35.zip
array2dir: Create parent directories if missing
-rw-r--r--ratatoeskr/sys/pluginpackage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/sys/pluginpackage.php b/ratatoeskr/sys/pluginpackage.php
index 3e2c5f9..3e34ca7 100644
--- a/ratatoeskr/sys/pluginpackage.php
+++ b/ratatoeskr/sys/pluginpackage.php
@@ -50,7 +50,7 @@ function dir2array($dir)
function array2dir($a, $dir)
{
if (!is_dir($dir)) {
- mkdir($dir);
+ mkdir($dir, 0777, true);
}
foreach ($a as $k => $v) {