This commit is contained in:
Билай Станислав 2025-01-24 16:47:37 +03:00
parent de0354f9cb
commit 2655a793f5
3 changed files with 15 additions and 0 deletions

View File

@ -105,6 +105,11 @@ class AdminThemeService
if ($adminThemePaths) {
$path = json_decode($adminThemePaths->value);
foreach ($path->paths as $p) {
if (!is_dir(getConst($p))){
$old_mask = umask(0);
mkdir(getConst($p), permissions: 0775, recursive: true);
umask($old_mask);
}
$dirs[] = getConst($p);
}
}

View File

@ -185,6 +185,11 @@ class ModuleService
if ($module_paths) {
$path = json_decode($module_paths->value);
foreach ($path->paths as $p) {
if (!is_dir(getConst($p))){
$old_mask = umask(0);
mkdir(getConst($p), permissions: 0775, recursive: true);
umask($old_mask);
}
$dirs[] = getConst($p);
}
}

View File

@ -162,6 +162,11 @@ class ThemeService
if ($ThemePaths) {
$path = json_decode($ThemePaths->value);
foreach ($path->paths as $p) {
if (!is_dir(getConst($p))){
$old_mask = umask(0);
mkdir(getConst($p), permissions: 0775, recursive: true);
umask($old_mask);
}
$dirs[] = getConst($p);
}
}