aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-01-11 04:19:03 +0000
committerMatthew Wild <mwild1@gmail.com>2011-01-11 04:19:03 +0000
commit99bfcca212edf010ae5ff08b608072835de4f9bf (patch)
tree6f5f6f578f7fe5348234cd1c51bc3afc705d9a89 /util/datamanager.lua
parent2da3143c9dbbf47e96677cdbd3c55c558c61ea53 (diff)
downloadprosody-99bfcca212edf010ae5ff08b608072835de4f9bf.tar.gz
prosody-99bfcca212edf010ae5ff08b608072835de4f9bf.zip
util.datamanager: Handle gracefully the lack of prosody.paths.data
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r--util/datamanager.lua2
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 -------------