diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-06 00:35:06 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-06 00:35:06 +0000 |
commit | d930baaa0c9c659f50d493db3991e059b82cc1c3 (patch) | |
tree | 0385ebd5e4fd03b9de9e454ddc0c7e21c1f266d5 | |
parent | 7be6d854c15df979cf2079efe9a282b208d7692d (diff) | |
download | prosody-d930baaa0c9c659f50d493db3991e059b82cc1c3.tar.gz prosody-d930baaa0c9c659f50d493db3991e059b82cc1c3.zip |
util.datamanager: Store data stores with no host in '_global' folder
-rw-r--r-- | util/datamanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index bfd69ebf..30cd082b 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -88,7 +88,7 @@ end function getpath(username, host, datastore, ext, create) ext = ext or "dat"; - host = host and encode(host); + host = (host and encode(host)) or "_global"; username = username and encode(username); if username then if create then mkdir(mkdir(mkdir(data_path).."/"..host).."/"..datastore); end |