Skip to content

Commit

Permalink
Only detect and move parent directory if it contains a manager.json
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Aug 21, 2024
1 parent 3746f70 commit 7593947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ApiKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7593947

Please sign in to comment.