when ZM_DIR_EVENTS is relative, append ZM_PATH_WEB

This commit is contained in:
Isaac Connor 2016-09-21 16:00:23 -04:00
parent 4b5af390fd
commit d96febd967
1 changed files with 8 additions and 1 deletions

View File

@ -27,7 +27,14 @@ class Storage {
if ( isset( $this->{'Path'} ) and ( $this->{'Path'} != '' ) ) {
return $this->{'Path'};
} else if ( ! isset($this->{'Id'}) ) {
return ZM_DIR_EVENTS;
$path = ZM_DIR_EVENTS;
if ( $path[0] != '/' ) {
$this->{'Path'} = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS;
} else {
$this->{'Path'} = ZM_DIR_EVENTS;
}
return $this->{'Path'};
}
return $this->{'Name'};
}