From 99bfcca212edf010ae5ff08b608072835de4f9bf Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 11 Jan 2011 04:19:03 +0000 Subject: util.datamanager: Handle gracefully the lack of prosody.paths.data --- util/datamanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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 ------------- -- cgit v1.2.3