diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-01-11 04:19:03 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-01-11 04:19:03 +0000 |
commit | 99bfcca212edf010ae5ff08b608072835de4f9bf (patch) | |
tree | 6f5f6f578f7fe5348234cd1c51bc3afc705d9a89 /util | |
parent | 2da3143c9dbbf47e96677cdbd3c55c558c61ea53 (diff) | |
download | prosody-99bfcca212edf010ae5ff08b608072835de4f9bf.tar.gz prosody-99bfcca212edf010ae5ff08b608072835de4f9bf.zip |
util.datamanager: Handle gracefully the lack of prosody.paths.data
Diffstat (limited to 'util')
-rw-r--r-- | util/datamanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index 5aee289d..2be3acfd 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -57,7 +57,7 @@ local function mkdir(path) return path; end -local data_path = prosody.paths.data; +local data_path = (prosody and prosody.paths and prosody.paths.data) or "."; local callbacks = {}; ------- API ------------- |