Set page name correctly on preview.
This commit is contained in:
bootstraponline
2012-06-19 10:59:24 -06:00
parent 7aca7fa0ec
commit 4b02b74d6f
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ module Precious
post '/preview' do
wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options)
@name = "Preview"
@name = params[:page] || "Preview"
@page = wiki.preview_page(@name, params[:content], params[:format])
@content = @page.formatted_data
@toc_content = wiki.universal_toc ? @page.toc_data : nil