summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 17:09:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 17:09:25 +0000
commit260373aed71ede51f4bc46e34283dd66b8be1cd8 (patch)
tree4fd848b5e3e56e2a00b9d29d8d3e087789f0680b /lib/redmine/wiki_formatting
parent4a5d3e03531f37a46c80a976d5a38189db70a8ff (diff)
downloadredmine-260373aed71ede51f4bc46e34283dd66b8be1cd8.tar.gz
redmine-260373aed71ede51f4bc46e34283dd66b8be1cd8.zip
Slight changes to ease Rails 2.2 support.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2234 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting')
-rw-r--r--lib/redmine/wiki_formatting/textile/helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/redmine/wiki_formatting/textile/helper.rb b/lib/redmine/wiki_formatting/textile/helper.rb
index 22fa35783..c4bde572b 100644
--- a/lib/redmine/wiki_formatting/textile/helper.rb
+++ b/lib/redmine/wiki_formatting/textile/helper.rb
@@ -21,8 +21,7 @@ module Redmine
module Helper
def wikitoolbar_for(field_id)
# Is there a simple way to link to a public resource?
- prefix = (ActionController::Base.respond_to?(:relative_url_root) ? ActionController::Base.relative_url_root : ActionController::AbstractRequest.relative_url_root)
- url = "#{prefix}/help/wiki_syntax.html"
+ url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html"
help_link = l(:setting_text_formatting) + ': ' +
link_to(l(:label_help), url,