Changeset

2328:2804d81206d8

util.datamanager: Store data stores with no host in '_global' folder
author Matthew Wild <mwild1@gmail.com>
date Sun, 06 Dec 2009 00:35:06 +0000
parents 2325:265441f2ad48
children 2329:e497718194a3
files util/datamanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/datamanager.lua	Sat Dec 05 13:34:45 2009 +0000
+++ b/util/datamanager.lua	Sun Dec 06 00:35:06 2009 +0000
@@ -88,7 +88,7 @@
 
 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