diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-28 20:04:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-28 20:04:38 +0000 |
commit | 744e4357a00780583df556b9d4b5cfb0ad6517dc (patch) | |
tree | 43e706c4a61205393f61fbe9bbffb27a2d063c70 /app/views/wiki | |
parent | 63dc83fc0d57dff4e908639d7843b0b1dc220f12 (diff) | |
download | redmine-744e4357a00780583df556b9d4b5cfb0ad6517dc.tar.gz redmine-744e4357a00780583df556b9d4b5cfb0ad6517dc.zip |
Fixed: Wiki export link doesn't work for users without :view_wiki_edits permission (#9682).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7971 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/show.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index 564fc8980..22f3bab72 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -53,9 +53,9 @@ <% end %> <% other_formats_links do |f| %> - <%= f.link_to 'PDF', :url => {:id => @page.title, :version => @content.version} %> - <%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %> - <%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %> + <%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %> + <%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %> + <%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %> <% end if User.current.allowed_to?(:export_wiki_pages, @project) %> <% content_for :header_tags do %> |