Fix the commit information for page deletion.

Now they will be authored by the gollum.author.
This commit is contained in:
Janusz Lewandowski
2014-08-02 00:36:48 +02:00
parent 55b9af1589
commit 934affe419
+3 -1
View File
@@ -258,7 +258,9 @@ module Precious
wiki = wikip.wiki
page = wikip.page
unless page.nil?
wiki.delete_page(page, { :message => "Destroyed #{name} (#{page.format})" })
commit = commit_message
commit[:message] = "Destroyed #{name} (#{page.format})"
wiki.delete_page(page, commit)
end
redirect to('/')