Fix #5648 - New design for post release report
authorEdward <edward@roojs.com>
Fri, 18 Jan 2019 07:12:21 +0000 (15:12 +0800)
committerEdward <edward@roojs.com>
Fri, 18 Jan 2019 07:12:21 +0000 (15:12 +0800)
Mailer.php

index 23fb875..af62173 100644 (file)
@@ -122,7 +122,7 @@ class Pman_Core_Mailer {
         
         $ff = HTML_FlexyFramework::get();
         $http_host = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : 'pman.HTTP_HOST.not.set';
-        if (isset($ff->Pman['HTTP_HOST'])) {
+        if (isset($ff->Pman['HTTP_HOST']) && $http_host != 'localhost') {
             $http_host  = $ff->Pman['HTTP_HOST'];
         }