# HG changeset patch # User Matthew Wild # Date 1294719543 0 # Node ID e3e3aa286334bb1b2dc20797f67f2d2ec62988cf # Parent e19fc274e182cb8e9adb58604a48eb3848c6609a util.datamanager: Handle gracefully the lack of prosody.paths.data diff -r e19fc274e182 -r e3e3aa286334 util/datamanager.lua --- 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 -------------