James Moger
2011-07-27 f8dc86f1b362c2906ea302eb56928b59156cd484
src/com/gitblit/IStoredSettings.java
@@ -118,6 +118,26 @@
   }
   /**
    * Returns the char value for the specified key. If the key does not exist
    * or the value for the key can not be interpreted as a char, the
    * defaultValue is returned.
    *
    * @param key
    * @param defaultValue
    * @return key value or defaultValue
    */
   public char getChar(String name, char defaultValue) {
      Properties props = getSettings();
      if (props.containsKey(name)) {
         String value = props.getProperty(name);
         if (!StringUtils.isEmpty(value)) {
            return value.charAt(0);
         }
      }
      return defaultValue;
   }
   /**
    * Returns the string value for the specified key. If the key does not exist
    * or the value for the key can not be interpreted as a string, the
    * defaultValue is returned.