diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-09-19 05:15:27 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-09-19 05:15:27 +0400 |
commit | b189710e6fb0411d4201def74faa2e8735a39d46 (patch) | |
tree | cad161b46a81491073e48731568a20b48ca8aa37 /core/Mail.php | |
parent | 1acbb8266014906367532da1d55ea5f800adb9eb (diff) |
Health check to ensure the config setting is used
git-svn-id: http://dev.piwik.org/svn/trunk@5187 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Mail.php b/core/Mail.php index 6c9d323ce5..1aceab1b62 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -37,7 +37,9 @@ class Piwik_Mail extends Zend_Mail // If known Piwik URL, use it instead of "localhost" $piwikUrl = Piwik::getPiwikUrl(); $url = parse_url($piwikUrl); - if(isset($url['host'])) + if(isset($url['host']) + && $url['host'] != 'localhost' + && $url['host'] != '127.0.0.1') { $piwikHost = $url['host']; } |