Skip to content

Commit 5f9ca91

Browse files
author
xPand4B
committed
Updated pimcore check
1 parent 4a0c2af commit 5f9ca91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ private function getSitesFromPaths(array $paths): array
9393

9494
$isShopware = strpos(strtolower($site), 'shopware') !== false;
9595
$isPimcore = strpos(strtolower($site), 'pimcore') !== false;
96+
$isNamedPimcore = strpos(strtolower($path), 'pimcore') !== false;
9697

9798
$result[$trimmedPath][$site] = [
9899
'url' => 'http://' . $site . '.' . $this->tld . self::VALET_PORT,
99-
'hasAdmin' => $isShopware || $isPimcore
100+
'hasAdmin' => $isShopware || $isPimcore || $isNamedPimcore
100101
// 'githubLink' => parse_ini_file("$path/$site/.git/config")['url'] ?? null
101102
];
102103
}

0 commit comments

Comments
 (0)