summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting/textile/helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/wiki_formatting/textile/helper.rb')
-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,