Swap event and web path around the right way

This commit is contained in:
Steve Gilvarry 2016-09-26 21:22:58 +10:00
parent 8f6007bb49
commit 2eba0b4c45
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ Storage::Storage( unsigned int p_id ) {
if ( ! id ) { if ( ! id ) {
if ( config.dir_events[0] != '/' ) { if ( config.dir_events[0] != '/' ) {
// not using an absolute path. Make it one by appending ZM_PATH_WEB // not using an absolute path. Make it one by appending ZM_PATH_WEB
snprintf( path, sizeof(path), "%s/%s", config.dir_events, staticConfig.PATH_WEB.c_str() ); snprintf(path, sizeof (path), "%s/%s", staticConfig.PATH_WEB.c_str(), config.dir_events);
} else { } else {
strncpy(path, config.dir_events, sizeof(path) ); strncpy(path, config.dir_events, sizeof(path) );
} }