From 5f9ca91e967fed384622498c1e02e5b822a50396 Mon Sep 17 00:00:00 2001 From: xPand4B Date: Wed, 29 Jun 2022 13:35:11 +0200 Subject: [PATCH] Updated pimcore check --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index dfc3506..7d8ee6a 100644 --- a/index.php +++ b/index.php @@ -93,10 +93,11 @@ private function getSitesFromPaths(array $paths): array $isShopware = strpos(strtolower($site), 'shopware') !== false; $isPimcore = strpos(strtolower($site), 'pimcore') !== false; + $isNamedPimcore = strpos(strtolower($path), 'pimcore') !== false; $result[$trimmedPath][$site] = [ 'url' => 'http://' . $site . '.' . $this->tld . self::VALET_PORT, - 'hasAdmin' => $isShopware || $isPimcore + 'hasAdmin' => $isShopware || $isPimcore || $isNamedPimcore // 'githubLink' => parse_ini_file("$path/$site/.git/config")['url'] ?? null ]; }