final before pull request

This commit is contained in:
Daniele Grandini
2017-02-24 13:54:29 +01:00
parent 318a4717d1
commit c5f3270ff6
+4
View File
@@ -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