Skip to content

Commit

Permalink
Merge branch 'master' of github.com:freescout-helpdesk/freescout into…
Browse files Browse the repository at this point in the history
… dist
  • Loading branch information
freescout-help-desk committed Nov 12, 2018
2 parents 5b94ae8 + 5294213 commit adab9fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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
8 changes: 4 additions & 4 deletions tools/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ if [ -f "${TOOLS_DIR}/pre_upgrade.sh" ]; then
source "${TOOLS_DIR}/pre_upgrade.sh";
fi

if [ -f "${PROJECT_ROOT}/.gitcommit" ]; then
gitcommit=`more "${PROJECT_ROOT}/.gitcommit"`
echo -e "Last commit: \e[32m${gitcommit}\e[0m";
fi
#if [ -f "${PROJECT_ROOT}/.gitcommit" ]; then
# gitcommit=`more "${PROJECT_ROOT}/.gitcommit"`
# echo -e "Last commit: \e[32m${gitcommit}\e[0m";
#fi

# Check if git is installed
git_installed=`command -v git`;
Expand Down

0 comments on commit adab9fc

Please sign in to comment.