projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5992237
)
util.datamanager: Store data stores with no host in '_global' folder
author
Matthew Wild
<mwild1@gmail.com>
Sun, 6 Dec 2009 00:35:06 +0000
(
00:35
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 6 Dec 2009 00:35:06 +0000
(
00:35
+0000)
util/datamanager.lua
patch
|
blob
|
history
diff --git
a/util/datamanager.lua
b/util/datamanager.lua
index bfd69ebfcb02dbf3a5bb4eebe8b63950542b3d58..30cd082bdf31eb5232542c19034caf44eb37f97f 100644
(file)
--- 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