Skip to content

Commit

Permalink
Merge pull request #4 from markatk/main
Browse files Browse the repository at this point in the history
Fix self hosted configuration variables

(closes #3)
  • Loading branch information
iainsgillis committed Aug 1, 2021
2 parents d5cf973 + 2a7d730 commit 36d5e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plausible.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public function onAssetsInitialized()
$externalLinksEnabled = $this->config->get('plugins.plausible.outbound_link_tracking');
$customEventsEnabled = $this->config->get('plugins.plausible.custom_event_goals');

$selfHostingEnabled = $this->config->get('plugins.plausible.self_hosting_custom_domain.self_hosting');
$selfHostingUrl = $this->config->get('plugins.plausible.self_hosting_custom_domain.custom_domain');
$selfHostingEnabled = $this->config->get('plugins.plausible.self_hosting');
$selfHostingUrl = $this->config->get('plugins.plausible.custom_domain');

$plausibleBaseUrl = ($selfHostingEnabled && isset($selfHostingUrl)) ? $selfHostingUrl : 'https://plausible.io';

Expand Down

0 comments on commit 36d5e0c

Please sign in to comment.