提交 324fe12a 编写于 作者: K Kamil Trzcinski 提交者: James Edwards-Jones

Fix pages path settings option.

上级 6c9ba469
......@@ -267,7 +267,7 @@ Settings.registry['path'] = File.expand_path(Settings.registry['path'
#
Settings['pages'] ||= Settingslogic.new({})
Settings.pages['enabled'] = false if Settings.pages['enabled'].nil?
Settings.pages['path'] ||= File.expand_path('shared/pages/', Rails.root)
Settings.pages['path'] = File.expand_path(Settings.pages['path'] || File.join(Settings.shared['path'], "pages"), Rails.root)
Settings.pages['host'] ||= "example.com"
Settings.pages['https'] = false if Settings.pages['https'].nil?
Settings.pages['port'] ||= Settings.pages.https ? 443 : 80
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册