Mailer.php wip_edward_T5648_New_design_for_post_release
authorEdward <edward@roojs.com>
Mon, 14 Jan 2019 03:54:23 +0000 (11:54 +0800)
committerEdward <edward@roojs.com>
Mon, 14 Jan 2019 03:54:23 +0000 (11:54 +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'];
         }