wiking-redmine-3.2-help404.patch
lib/wiking_wiki_helper_patch.rb (working copy) | ||
---|---|---|
49 | 49 | |
50 | 50 |
if defined? ChiliProject |
51 | 51 |
url = url_for(:controller => 'help', :action => 'wiki_syntax') |
52 |
elsif File.exists?(File.join(Rails.root, 'public/help', current_language.to_s.downcase, 'wiki_syntax.html')) |
|
53 |
url = "#{Redmine::Utils.relative_url_root}/help/#{current_language.to_s.downcase}/wiki_syntax.html" |
|
52 |
elsif File.exists?(File.join(Rails.root, 'public/help', current_language.to_s.downcase, 'wiki_syntax_textile.html'))
|
|
53 |
url = "#{Redmine::Utils.relative_url_root}/help/#{current_language.to_s.downcase}/wiki_syntax_textile.html"
|
|
54 | 54 |
else |
55 |
url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html" |
|
55 |
url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax_textile.html"
|
|
56 | 56 |
end |
57 | 57 | |
58 | 58 |
if File.exists?(File.join(Rails.root, 'plugins/wiking/assets/help/', current_language.to_s.downcase, 'wiki_syntax.html')) |