mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-07-10 13:15:45 -04:00
detect relative path for ZM_PATH_EVENTS and use ZM_PATH_WEB to make a full path
This commit is contained in:
@@ -96,7 +96,7 @@ sub Path {
|
||||
$_[0]{Path} = $_[1];
|
||||
}
|
||||
if ( ! ( $_[0]{Id} or $_[0]{Path} ) ) {
|
||||
$_[0]{Path} = $Config{ZM_DIR_EVENTS};
|
||||
$_[0]{Path} = ($Config{ZM_DIR_EVENTS}=~/^\//) ? $Config{ZM_DIR_EVENTS} : ($Config{ZM_PATH_WEB}.'/'.$Config{ZM_DIR_EVENTS})
|
||||
}
|
||||
return $_[0]{Path};
|
||||
} # end sub Path
|
||||
|
||||
Reference in New Issue
Block a user