summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-17 20:47:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-17 20:47:50 +0000
commit0fcc436f226fd58e9463ccc92ad488b4630d14f4 (patch)
tree357f445cf21565ff3de84ae8b06369dc6420b057 /lib/redmine/wiki_formatting.rb
parent74e85953f00f07141a0226ad951646279765a9f5 (diff)
downloadredmine-0fcc436f226fd58e9463ccc92ad488b4630d14f4.tar.gz
redmine-0fcc436f226fd58e9463ccc92ad488b4630d14f4.zip
Fixed: Deselecting textile text formatting causes interning empty string errors (#4867).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3446 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting.rb')
-rw-r--r--lib/redmine/wiki_formatting.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index c62a3ef01..dcce0fc44 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -25,17 +25,17 @@ module Redmine
end
def register(name, formatter, helper)
- raise ArgumentError, "format name '#{name}' is already taken" if @@formatters[name.to_sym]
- @@formatters[name.to_sym] = {:formatter => formatter, :helper => helper}
+ raise ArgumentError, "format name '#{name}' is already taken" if @@formatters[name.to_s]
+ @@formatters[name.to_s] = {:formatter => formatter, :helper => helper}
end
def formatter_for(name)
- entry = @@formatters[name.to_sym]
+ entry = @@formatters[name.to_s]
(entry && entry[:formatter]) || Redmine::WikiFormatting::NullFormatter::Formatter
end
def helper_for(name)
- entry = @@formatters[name.to_sym]
+ entry = @@formatters[name.to_s]
(entry && entry[:helper]) || Redmine::WikiFormatting::NullFormatter::Helper
end