Changeset

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
parents 4106:e19fc274e182
children 4109:d26db1f936f8
files util/datamanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 -------------