Merge branch 'server_path_prefix'

This commit is contained in:
Isaac Connor 2018-11-30 14:46:20 -05:00
commit 9bb4f1804e
1 changed files with 6 additions and 6 deletions

View File

@ -84,8 +84,8 @@ class Server {
}
}
public function UrlToZMS( ) {
return $this->Url().$this->PathToZMS();
public function UrlToZMS( $port = null ) {
return $this->Url($port).$this->PathToZMS();
}
public function Url( $port = null ) {
@ -113,11 +113,11 @@ class Server {
return $_SERVER['PHP_SELF'];
}
public function UrlToIndex( ) {
return $this->Url().$this->PathToIndex();
public function UrlToIndex( $port=null ) {
return $this->Url($port).$this->PathToIndex();
}
public function UrlToApi( ) {
return $this->Url().$this->PathToApi();
public function UrlToApi( $port=null ) {
return $this->Url($port).$this->PathToApi();
}
public function PathToApi( $new = null ) {
if ( $new != null )