[Frontend] Small fix (no change in functionality) based on technoweenie's CR.

This commit is contained in:
Caleb Spare
2011-02-09 16:33:51 -08:00
parent db3d534ee5
commit d76a40b1a8
+1 -1
View File
@@ -57,7 +57,7 @@ module Precious
post '/edit/*' do
wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options)
page = wiki.page(params[:splat].first)
name = params[:rename] || params[:page]
name = params[:rename] || page.name
committer = Gollum::Committer.new(wiki, commit_message)
commit = {:committer => committer}