Fix customStructure

This commit is contained in:
Luca 2020-12-11 18:03:23 +01:00
parent 900b15ab91
commit 2d070b95de
1 changed files with 10 additions and 2 deletions

View File

@ -34,7 +34,11 @@ function customStructure()
// Controlli di personalizzazione fisica
foreach ($dirs as $dir) {
$files = glob(base_dir().'/'.$dir.'/*/custom/**/*.{php,html}', GLOB_BRACE);
$files = glob(base_dir().'/'.$dir.'/*/custom/*.{php,html}', GLOB_BRACE);
$recursive_files = glob(base_dir().'/'.$dir.'/*/custom/**/*.{php,html}', GLOB_BRACE);
$files = array_merge($files, $recursive_files);
foreach ($files as $file) {
$file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0];
@ -46,7 +50,11 @@ function customStructure()
}
// Gestione cartella include
$files = glob(base_dir().'/include/custom/**/*.{php,html}', GLOB_BRACE);
$files = glob(base_dir().'/include/custom/*.{php,html}', GLOB_BRACE);
$recursive_files = glob(base_dir().'/include/custom/**/*.{php,html}', GLOB_BRACE);
$files = array_merge($files, $recursive_files);
foreach ($files as $file) {
$file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0];