Skip to content

Commit

Permalink
Merge pull request #8 from mauricerenck/develop
Browse files Browse the repository at this point in the history
fix: plugin root detection
  • Loading branch information
mauricerenck authored Dec 4, 2020
2 parents b9a3427 + 68e9fa9 commit 8c702d2
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 8c702d2

Please sign in to comment.