discourse/lib/configurable_urls.rb

16 lines
377 B
Ruby
Raw Normal View History

module ConfigurableUrls
2013-06-28 00:10:43 +08:00
def faq_path
SiteSetting.faq_url.blank? ? "#{Discourse::base_uri}/faq" : SiteSetting.faq_url
end
def tos_path
SiteSetting.tos_url.blank? ? "#{Discourse::base_uri}/tos" : SiteSetting.tos_url
end
def privacy_path
SiteSetting.privacy_policy_url.blank? ? "#{Discourse::base_uri}/privacy" : SiteSetting.privacy_policy_url
end
end