Skip to content

Commit b0d9a75

Browse files
underaclaude
andcommitted
Read repo path from out.xml configs attribute, not hardcoded
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 81edc5c commit b0d9a75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/JPGC/PluginsRepository.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public function process()
3939

4040
private function getRepoData($readFiles = false)
4141
{
42-
$repoFile = 'dat/repo/repo.json';
42+
$node = $this->PWE->getNode();
43+
$configsDir = $node['!a']['configs'];
44+
$repoFile = $configsDir . '/repo.json';
4345
if (!is_file($repoFile)) {
4446
throw new HTTP5xxException("Repo file not found: " . realpath($repoFile));
4547
}

0 commit comments

Comments
 (0)