Code style, changelog
This commit is contained in:
parent
6af1362c0d
commit
f9d229af54
|
|
@ -19,6 +19,7 @@
|
|||
* Improve Chinese translation (Thanks to @PeterDaveHello)
|
||||
* Add Georgian translation (Thanks to @akalongman)
|
||||
* Add Greek translation (Thanks to @lenasterg)
|
||||
* Fix serverHostname on PHP < 5.3
|
||||
|
||||
## Version 5.2.7 (September 12th 2013)
|
||||
* Add Ukranian translation from @Krezalis
|
||||
|
|
|
|||
|
|
@ -2730,10 +2730,10 @@ class PHPMailer
|
|||
$result = $this->Hostname;
|
||||
} elseif (isset($_SERVER) and array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
|
||||
$result = $_SERVER['SERVER_NAME'];
|
||||
} elseif (function_exists("gethostname") && gethostname() !== false) {
|
||||
} elseif (function_exists('gethostname') && gethostname() !== false) {
|
||||
$result = gethostname();
|
||||
}elseif (php_uname("n") !== false){
|
||||
$result = php_uname("n");
|
||||
} elseif (php_uname('n') !== false) {
|
||||
$result = php_uname('n');
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue