From bb586a443164d35cf446a5304e754c3a5b474b4b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 5 Mar 2007 18:53:10 +0000 Subject: [PATCH] fixed export of wiki history pages git-svn-id: http://redmine.rubyforge.org/svn/branches/work@300 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- wiki/app/controllers/wiki_controller.rb | 2 +- wiki/app/views/wiki/show.rhtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wiki/app/controllers/wiki_controller.rb b/wiki/app/controllers/wiki_controller.rb index 251ef8ca0..8b8c00792 100644 --- a/wiki/app/controllers/wiki_controller.rb +++ b/wiki/app/controllers/wiki_controller.rb @@ -33,7 +33,7 @@ class WikiController < ApplicationController send_data(export, :type => 'text/html', :filename => "#{@page.title}.html") return elsif params[:export] == 'txt' - send_data(@page.content.text, :type => 'text/plain', :filename => "#{@page.title}.txt") + send_data(@content.text, :type => 'text/plain', :filename => "#{@page.title}.txt") return end render :action => 'show' diff --git a/wiki/app/views/wiki/show.rhtml b/wiki/app/views/wiki/show.rhtml index 901216bf3..4a020cd9b 100644 --- a/wiki/app/views/wiki/show.rhtml +++ b/wiki/app/views/wiki/show.rhtml @@ -27,6 +27,6 @@
<%= l(:label_export_to) %> -<%= link_to 'HTML', {:export => 'html'}, :class => 'icon icon-html' %>, -<%= link_to 'TXT', {:export => 'txt'}, :class => 'icon icon-txt' %> +<%= link_to 'HTML', {:export => 'html', :version => @content.version}, :class => 'icon icon-html' %>, +<%= link_to 'TXT', {:export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %>
\ No newline at end of file