Skip to content

Commit

Permalink
Enable open tracking by default
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Nov 12, 2018
1 parent f16ec84 commit 5294213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function isLicenseActivated($alias, $author_url)

public static function isOfficial($author_url)
{
return parse_url($author_url, PHP_URL_HOST) == self::getAppUrl();
return parse_url($author_url, PHP_URL_HOST) == parse_url(\Config::get('app.freescout_url'), PHP_URL_HOST);
}

/**
Expand Down Expand Up @@ -167,6 +167,6 @@ public static function deactiveModule($alias, $clear_app_cache = true)
*/
public static function getAppUrl()
{
return parse_url(\Config::get('app.freescout_url'), PHP_URL_HOST);
return parse_url(\Config::get('app.url'), PHP_URL_HOST);
}
}
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
'alert_fetch' => ['default' => false],
'alert_fetch_period' => ['default' => 15], // min
'email_branding' => ['default' => true],
'open_tracking' => ['default' => true],
],

/*
Expand Down

0 comments on commit 5294213

Please sign in to comment.