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->Protocol().'://';
|
||||||
$url .= $this->Hostname();
|
$url .= $this->Hostname();
|
||||||
if ( $port ) {
|
if ( !$port ) {
|
||||||
$url .= ':'.$port;
|
$port = $this->Port();
|
||||||
|
}
|
||||||
|
if ( $this->Protocol() == 'https' and $port == 443 ) {
|
||||||
|
} else if ( $this->Protocol() == 'http' and $port == 80 ) {
|
||||||
} else {
|
} else {
|
||||||
$url .= ':'.$this->Port();
|
Logger::Debug("Adding port $port for " . $this->Protocol());
|
||||||
|
$url .= ':'.$port;
|
||||||
}
|
}
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue