diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-29 13:53:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-29 13:53:17 +0000 |
commit | f1aa0df32666931f58b34a21d2e7acf43271fc7a (patch) | |
tree | 890de94871f94205851199549e61055ba13d241a /app/controllers/wiki_controller.rb | |
parent | bf76988ebc3efdf5753ee8ae275a2d24b4ab604e (diff) | |
download | redmine-f1aa0df32666931f58b34a21d2e7acf43271fc7a.tar.gz redmine-f1aa0df32666931f58b34a21d2e7acf43271fc7a.zip |
Adds an helper to render other formats download links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2333 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r-- | app/controllers/wiki_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 2dcc6f971..1a480e4bd 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -45,11 +45,11 @@ class WikiController < ApplicationController return end @content = @page.content_for_version(params[:version]) - if params[:export] == 'html' + if params[:format] == 'html' export = render_to_string :action => 'export', :layout => false send_data(export, :type => 'text/html', :filename => "#{@page.title}.html") return - elsif params[:export] == 'txt' + elsif params[:format] == 'txt' send_data(@content.text, :type => 'text/plain', :filename => "#{@page.title}.txt") return end |