diff options
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/Mail.php b/core/Mail.php index 691c2ccc82..3b74504b14 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -31,11 +31,7 @@ class Piwik_Mail extends Zend_Mail public function setFrom($email, $name = null) { - $piwikHost = Piwik_Url::getCurrentHost(); - if(strlen($piwikHost) == 0) - { - $piwikHost = 'piwik.org'; - } + $piwikHost = Piwik_Url::getCurrentHost('piwik.org'); $email = str_replace('{DOMAIN}', $piwikHost, $email); parent::setFrom($email, $name); } |