Index: branches/5.2.x/core/units/helpers/modules_helper.php =================================================================== diff -u -N -r14092 -r14095 --- branches/5.2.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 14092) +++ branches/5.2.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 14095) @@ -1,6 +1,6 @@ _ParseLicense($license); @@ -247,8 +247,7 @@ */ function _GetDomain($vars) { - $config_domain = array_key_exists('Domain', $vars) ? $vars['Domain'] : false; - return $this->Application->ConfigValue('DomainDetect') ? $_SERVER['HTTP_HOST'] : $config_domain; + return isset($vars['Domain']) ? $vars['Domain'] : SERVER_NAME; } function _keyED($txt, $encrypt_key)