Skip to content

Commit ed76a8d

Browse files
committed
Update install
1 parent 25e374b commit ed76a8d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

install.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@
1616

1717
//load composer.json and get the "name" of pack
1818
$namespace = @json_decode(file_get_contents(__DIR__.'/composer.json'))->name;
19-
$appConfig = $composer['Config\\'][0].'/'.$namespace.'/';
19+
20+
$namespace = explode('/', $namespace);
21+
22+
$appConfig = $composer['Config\\'][0].'/';
23+
24+
foreach ($namespace as $value) {
25+
$appConfig .= ucfirst($value).'/';
26+
}
2027

2128
$thisConfig = __DIR__.'/Config/';
22-
//exit("\n\n\---> $appConfig\n");
2329

2430
if (!is_dir($thisConfig)) {
2531
ret("I can't find 'Config' directory in this pack!");

0 commit comments

Comments
 (0)