Skip to content

Commit

Permalink
fix: plugin root detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Dec 4, 2020
1 parent 21e2841 commit 68e9fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[
'pattern' => 'komments/version',
'action' => function () {
$string = f::read(kirby()->roots()->index() . '/composer.json');
$string = f::read(__DIR__ . '/../composer.json');
return $string;
}
],
Expand Down

0 comments on commit 68e9fa9

Please sign in to comment.