return proper hostname when not using multiple servers
This commit is contained in:
parent
62b0a1ecdc
commit
9fa28106e5
|
@ -69,6 +69,7 @@ class Server {
|
|||
if ( $this->Id() ) {
|
||||
return ZM_BASE_PROTOCOL . '://'. $this->Hostname();
|
||||
} else {
|
||||
return ZM_BASE_PROTOCOL . '://'. $_SERVER['SERVER_NAME'];
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue