some fix
This commit is contained in:
		| @@ -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); | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -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); | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -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); | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user