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}