[#345] fix wiki path
This commit is contained in:
parent
197c33195a
commit
f9b298b8e8
|
@ -19,7 +19,7 @@ module Wiki
|
|||
def create_wiki
|
||||
if has_wiki && !FileTest.exist?(wiki_path)
|
||||
Grit::Repo.init_bare(wiki_path)
|
||||
wiki = Gollum::Wiki.new(wiki_path, {base_path: Rails.application.routes.url_helpers.project_wiki_index_path(owner, self)})
|
||||
wiki = Gollum::Wiki.new(wiki_path, { base_path: Rails.application.routes.url_helpers.project_wiki_index_path(self) })
|
||||
wiki.write_page('Home', :markdown, I18n.t("wiki.seed.welcome_content"),
|
||||
{ name: owner.name, email: owner.email, message: 'Initial commit' })
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue