Changeset

4541:05f5ec99da77

Merge with trunk
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Jan 2012 22:55:49 +0000
parents 4530:40905e7bf680 (diff) 4540:ddce5b1bdfca (current diff)
children 4542:50aca1e0bfbd
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/configmanager.lua	Sun Jan 22 19:50:08 2012 +0000
+++ b/core/configmanager.lua	Sun Jan 22 22:55:49 2012 +0000
@@ -41,6 +41,9 @@
 end
 
 function get(host, section, key)
+	if not key then
+		section, key = "core", section;
+	end
 	local sec = config[host][section];
 	if sec then
 		return sec[key];