when ZM_DIR_EVENTS is relative, append ZM_PATH_WEB
This commit is contained in:
parent
4b5af390fd
commit
d96febd967
|
@ -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'};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue