From d76a40b1a82c56944ab575e6bb698195f405bf1e Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Wed, 9 Feb 2011 16:33:51 -0800 Subject: [PATCH] [Frontend] Small fix (no change in functionality) based on technoweenie's CR. --- lib/gollum/frontend/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 4dac5b4f..49687403 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -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}