Revert change breaking multiport when servers not defined.
This commit is contained in:
parent
c7d7d45380
commit
a05c513643
|
@ -88,11 +88,6 @@ class Server extends ZM_Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Url( $port = null ) {
|
public function Url( $port = null ) {
|
||||||
if ( !$this->Id() ) {
|
|
||||||
# Trying to guess and make up values tends to break proxies. So just return nothing
|
|
||||||
# so that the resulting url will be something like "?view="
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
$url = $this->Protocol().'://';
|
$url = $this->Protocol().'://';
|
||||||
$url .= $this->Hostname();
|
$url .= $this->Hostname();
|
||||||
if ( $port ) {
|
if ( $port ) {
|
||||||
|
|
Loading…
Reference in New Issue