Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

GLOB_BRACE fallback

givanz47fa29780da0
diff --git a/system/import/theme.php b/system/import/theme.php
index 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;