aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-01-07 11:59:05 +0000
committerMatthew Wild <mwild1@gmail.com>2011-01-07 11:59:05 +0000
commit4fac07320796a04ea2596f7c0ceaabaa608bd532 (patch)
treeabd3446bd90c35e108a9336c9865f85d34eac4f5 /prosody
parent79bcb5c7cfed2a2ea89d2bac48bacb9e9447d599 (diff)
parent1453a1753f69dbfd122436fca77888328058046b (diff)
downloadprosody-4fac07320796a04ea2596f7c0ceaabaa608bd532.tar.gz
prosody-4fac07320796a04ea2596f7c0ceaabaa608bd532.zip
Merge 0.8->trunk
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody7
1 files changed, 3 insertions, 4 deletions
diff --git a/prosody b/prosody
index 42c3acad..8dcb0096 100755
--- a/prosody
+++ b/prosody
@@ -183,9 +183,10 @@ function init_global_state()
prosody.full_sessions = full_sessions;
prosody.hosts = hosts;
+ local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR,
- plugins = CFG_PLUGINDIR, data = CFG_DATADIR };
-
+ plugins = CFG_PLUGINDIR, data = data_path };
+
prosody.arg = _G.arg;
prosody.platform = "unknown";
@@ -344,8 +345,6 @@ function load_secondary_libraries()
end
function init_data_store()
- local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
- require "util.datamanager".set_data_path(data_path);
require "core.storagemanager";
end