]> source.dussan.org Git - redmine.git/commitdiff
Fixes that Redmine::WikiFormatting.register did not raise ArgumentError when giving...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2009 12:57:16 +0000 (12:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2009 12:57:16 +0000 (12:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2562 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting.rb

index 1525dbc1965e2ca078db05816bb666a481f49a60..29472206734b44a461f644c18779479b24fabfe1 100644 (file)
@@ -25,7 +25,7 @@ module Redmine
       end
       
       def register(name, formatter, helper)
-        raise ArgumentError, "format name '#{name}' is already taken" if @@formatters[name]
+        raise ArgumentError, "format name '#{name}' is already taken" if @@formatters[name.to_sym]
         @@formatters[name.to_sym] = {:formatter => formatter, :helper => helper}
       end