Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Mail.php')
-rw-r--r--core/Mail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Mail.php b/core/Mail.php
index 8846170ebd..691c2ccc82 100644
--- a/core/Mail.php
+++ b/core/Mail.php
@@ -31,7 +31,7 @@ class Piwik_Mail extends Zend_Mail
public function setFrom($email, $name = null)
{
- $piwikHost = @$_SERVER['HTTP_HOST'];
+ $piwikHost = Piwik_Url::getCurrentHost();
if(strlen($piwikHost) == 0)
{
$piwikHost = 'piwik.org';