diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-01-07 11:55:19 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-01-07 11:55:19 +0000 |
commit | fb8362bbeedd74829271f43bf43aa11f8c79b169 (patch) | |
tree | 44a517f92b21590d298689afe9d61b7c13f39b28 /util/datamanager.lua | |
parent | f12a844d966fd910f024f450eb6332d0a9a7ec26 (diff) | |
download | prosody-fb8362bbeedd74829271f43bf43aa11f8c79b169.tar.gz prosody-fb8362bbeedd74829271f43bf43aa11f8c79b169.zip |
util.datamanager: Use prosody.paths.data as the initial value for data_path
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r-- | util/datamanager.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index fbdfb581..5aee289d 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -22,6 +22,7 @@ local t_insert = table.insert; 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 @@ local function mkdir(path) return path; end -local data_path = "data"; +local data_path = prosody.paths.data; local callbacks = {}; ------- API ------------- |