From 69e2512750dd75fce43a21226979996c3cd7da1d Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 9 Jun 2013 17:35:48 -0700 Subject: Configuration Changes Fixing a bug in the config class and updating all templates and pages to use the dynamicRoot and staticRoot config values to prefix URLs. --- src/com/p4square/grow/config/Config.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/com/p4square/grow/config/Config.java') diff --git a/src/com/p4square/grow/config/Config.java b/src/com/p4square/grow/config/Config.java index f5ebe3c..20d6ff5 100644 --- a/src/com/p4square/grow/config/Config.java +++ b/src/com/p4square/grow/config/Config.java @@ -49,6 +49,7 @@ public class Config { * @param domain The new domain. */ public void setDomain(String domain) { + cLog.info("Setting Config domain to " + domain); mDomain = domain; } @@ -99,17 +100,20 @@ public class Config { String result; final String domainKey = mDomain + "." + key; - result = mProperties.getProperty(domainKey, defaultValue); + result = mProperties.getProperty(domainKey); if (result != null) { + cLog.debug("Reading config for key = { " + key + " }. Got result = { " + result + " }"); return result; } final String globalKey = "*." + key; - result = mProperties.getProperty(globalKey, defaultValue); + result = mProperties.getProperty(globalKey); if (result != null) { + cLog.debug("Reading config for key = { " + key + " }. Got result = { " + result + " }"); return result; } + cLog.debug("Reading config for key = { " + key + " }. Got default value = { " + defaultValue + " }"); return defaultValue; } -- cgit v1.2.3