some fix
This commit is contained in:
parent
de0354f9cb
commit
2655a793f5
@ -105,6 +105,11 @@ class AdminThemeService
|
|||||||
if ($adminThemePaths) {
|
if ($adminThemePaths) {
|
||||||
$path = json_decode($adminThemePaths->value);
|
$path = json_decode($adminThemePaths->value);
|
||||||
foreach ($path->paths as $p) {
|
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);
|
$dirs[] = getConst($p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -185,6 +185,11 @@ class ModuleService
|
|||||||
if ($module_paths) {
|
if ($module_paths) {
|
||||||
$path = json_decode($module_paths->value);
|
$path = json_decode($module_paths->value);
|
||||||
foreach ($path->paths as $p) {
|
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);
|
$dirs[] = getConst($p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -162,6 +162,11 @@ class ThemeService
|
|||||||
if ($ThemePaths) {
|
if ($ThemePaths) {
|
||||||
$path = json_decode($ThemePaths->value);
|
$path = json_decode($ThemePaths->value);
|
||||||
foreach ($path->paths as $p) {
|
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);
|
$dirs[] = getConst($p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user