diff --git a/lib/gollum/app.rb b/lib/gollum/app.rb index 5be0e43b..2f0611f4 100644 --- a/lib/gollum/app.rb +++ b/lib/gollum/app.rb @@ -314,6 +314,10 @@ module Precious get '/create/*' do forbid unless @allow_editing + if settings.wiki_options[:template_page] then + temppage = wiki_page("/_Template") + @template_page = (temppage.page != nil) ? temppage.page.raw_data : "Template page option is set, but no /_Template page is present or committed." + end wikip = wiki_page(params[:splat].first.gsub('+', '-')) @name = wikip.name.to_url @path = wikip.path