Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
GLOB_BRACE fallback
givanz47fa29780da0
diff --git a/system/import/theme.php b/system/import/theme.phpindex 706b2c3..3b7ad7c 100755--- a/system/import/theme.php+++ b/system/import/theme.php@@ -22,6 +22,8 @@namespace Vvveb\System\Import;+use function Vvveb\globBrace;+class Theme {private $theme;@@ -34,10 +36,13 @@ class Theme {function getStructure() {$path = $this->path;- $glob = glob($this->path . '{*,*/*,*/*/*}', GLOB_BRACE | GLOB_ONLYDIR);+ //$glob = glob($this->path . '{*,*/*,*/*/*}', GLOB_BRACE | GLOB_ONLYDIR);+ $glob = ['', '*,*/*,*/*/*'];++ $files = globBrace($path, $glob);$result = [];- foreach ($glob as $path => &$value) {+ foreach ($files as $path => &$value) {$dir = str_replace($this->path,'', $value);$temp = &$result;