Skip to content

Commit

Permalink
Merge pull request #15 from grommasdietz/main
Browse files Browse the repository at this point in the history
Support public folder setup
  • Loading branch information
arnoson authored Dec 28, 2023
2 parents ba24bf3 + 4eb14ce commit 32cca8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@

App::plugin('arnoson/kirby-stats', [
'options' => [
'sqlite' => kirby()->root() . '/site/plugins/kirby-stats/stats.sqlite',
'sqlite' => kirby()->root('storage')
? kirby()->root('storage') . '/stats.sqlite'
: kirby()->root('site') . '/storage/stats.sqlite',
'ignoreDirs' => ['panel', 'api', 'assets', 'media'],
],
'hooks' => include __DIR__ . '/hooks/hooks.php',
'api' => include __DIR__ . '/api/api.php',
'areas' => include __DIR__ . '/areas/areas.php',
]);
]);

0 comments on commit 32cca8e

Please sign in to comment.