Skip to content

Commit 8c702d2

Browse files
authored
Merge pull request #8 from mauricerenck/develop
fix: plugin root detection
2 parents b9a3427 + 68e9fa9 commit 8c702d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[
1313
'pattern' => 'komments/version',
1414
'action' => function () {
15-
$string = f::read(kirby()->roots()->index() . '/composer.json');
15+
$string = f::read(__DIR__ . '/../composer.json');
1616
return $string;
1717
}
1818
],

0 commit comments

Comments
 (0)