Validate user_icons

This commit is contained in:
bootstraponline
2012-11-13 22:48:37 -07:00
parent b030554348
commit 0de1a182da
+3 -1
View File
@@ -203,7 +203,9 @@ module Gollum
@collapse_tree = options.fetch :collapse_tree, false
@css = options.fetch :css, false
@h1_title = options.fetch :h1_title, false
@user_icons = options.fetch :user_icons, 'none'
@user_icons = ['gravatar', 'identicon'].include?( options[:user_icons] ) ?
options[:user_icons] : 'none'
end
# Public: check whether the wiki's git repo exists on the filesystem.