util.datamanager: Use prosody.paths.data as the initial value for data_path
authorMatthew Wild <mwild1@gmail.com>
Fri, 07 Jan 2011 11:55:19 +0000
changeset 4093 36555949bd16
parent 4091 c53610fdab62
child 4094 38f3dfe88d4f
util.datamanager: Use prosody.paths.data as the initial value for data_path
util/datamanager.lua
--- a/util/datamanager.lua	Fri Jan 07 05:11:00 2011 +0000
+++ b/util/datamanager.lua	Fri Jan 07 11:55:19 2011 +0000
@@ -22,6 +22,7 @@
 local append = require "util.serialization".append;
 local path_separator = "/"; if os.getenv("WINDIR") then path_separator = "\\" end
 local lfs = require "lfs";
+local prosody = prosody;
 local raw_mkdir;
 
 if prosody.platform == "posix" then
@@ -56,7 +57,7 @@
 	return path;
 end
 
-local data_path = "data";
+local data_path = prosody.paths.data;
 local callbacks = {};
 
 ------- API -------------