Software /
code /
prosody
Diff
util/datamanager.lua @ 4108:e3e3aa286334
util.datamanager: Handle gracefully the lack of prosody.paths.data
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 11 Jan 2011 04:19:03 +0000 |
parent | 4093:36555949bd16 |
child | 4112:09f0ba0cfbfc |
line wrap: on
line diff
--- a/util/datamanager.lua Mon Jan 10 21:11:06 2011 +0500 +++ b/util/datamanager.lua Tue Jan 11 04:19:03 2011 +0000 @@ -57,7 +57,7 @@ return path; end -local data_path = prosody.paths.data; +local data_path = (prosody and prosody.paths and prosody.paths.data) or "."; local callbacks = {}; ------- API -------------