Merge pull request #280 from nverba/patch-1

Quick fix for Boolean SiteSettings
This commit is contained in:
Robin Ward 2013-02-27 10:35:55 -08:00
commit 37175c264a

View File

@ -144,7 +144,7 @@ module SiteSettingExtension
type = get_data_type(defaults[name])
if type == Types::Bool && val != true && val != false
val = (val == "t" || val == "true")
val = (val == "t" || val == "true") ? 't' : 'f'
end
if type == Types::Fixnum && !(Fixnum === val)