2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-05-01 11:48:42 -04:00
|
|
|
module ConfigurableUrls
|
|
|
|
|
2013-06-27 12:10:43 -04:00
|
|
|
def faq_path
|
|
|
|
SiteSetting.faq_url.blank? ? "#{Discourse::base_uri}/faq" : SiteSetting.faq_url
|
|
|
|
end
|
|
|
|
|
2013-05-01 11:48:42 -04:00
|
|
|
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
|
|
|
|
|
2015-04-24 13:10:43 -04:00
|
|
|
end
|