When Server is not set, us ZM_BASE_PATH

pull/1222/head
Isaac Connor 2016-01-03 11:55:53 -05:00
parent 4d1f837e6c
commit c639822d62
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ class Server {
}
public function Url() {
if ( $this->Id() ) {
return ZM_BASE_PROTOCOL . '://'. $this->Hostname();
} else {
return ZM_BASE_PATH;
}
}
public function Hostname() {
if ( isset( $this->{'Hostname'} ) and ( $this->{'Hostname'} != '' ) ) {