From 75939478db8f1925e0536813b82955a7c21e78bf Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 21 Aug 2024 14:02:44 +0200 Subject: [PATCH] Only detect and move parent directory if it contains a manager.json --- api/ApiKernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ApiKernel.php b/api/ApiKernel.php index 765f81c5..b47a8489 100644 --- a/api/ApiKernel.php +++ b/api/ApiKernel.php @@ -156,7 +156,7 @@ public function getConfigDir(): string if (!$this->filesystem->exists($this->configDir)) { $parentDir = \dirname($this->getProjectDir()).\DIRECTORY_SEPARATOR.'contao-manager'; - if ($this->filesystem->exists($parentDir)) { + if ($this->filesystem->exists($parentDir.'/manager.json')) { $this->filesystem->mirror($parentDir, $this->configDir); }