Export with no layout option in the export_html

This commit is contained in:
Alexey Verkhovsky 2005-05-03 02:13:42 +00:00
parent d3fc0c40a2
commit 8827f61b70
2 changed files with 15 additions and 1 deletions

View file

@ -49,7 +49,7 @@ class WikiController < ApplicationController
export_pages_as_zip('html') do |page|
@page = page
@link_mode = :export
render_to_string('wiki/print', use_layout = true)
render_to_string('wiki/print', use_layout = (@params['layout'] != 'no'))
end
end