Don't add 442 for https and 80 for http. Just cleaner
This commit is contained in:
parent
82357a0675
commit
25426d5fdd
|
@ -100,10 +100,14 @@ class Server extends ZM_Object {
|
|||
|
||||
$url = $this->Protocol().'://';
|
||||
$url .= $this->Hostname();
|
||||
if ( $port ) {
|
||||
$url .= ':'.$port;
|
||||
if ( !$port ) {
|
||||
$port = $this->Port();
|
||||
}
|
||||
if ( $this->Protocol() == 'https' and $port == 443 ) {
|
||||
} else if ( $this->Protocol() == 'http' and $port == 80 ) {
|
||||
} else {
|
||||
$url .= ':'.$this->Port();
|
||||
Logger::Debug("Adding port $port for " . $this->Protocol());
|
||||
$url .= ':'.$port;
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue