mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:52:43 +08:00
FIX: multisite CDN support for site customizations
This commit is contained in:
@ -144,7 +144,7 @@ class SiteCustomization < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.link_css_tag(href)
|
def self.link_css_tag(href)
|
||||||
# href = (GlobalSetting.cdn_url || "") + href
|
href = (GlobalSetting.cdn_url || "") + "#{href}&__ws=#{Discourse.current_hostname}"
|
||||||
%Q{<link class="custom-css" rel="stylesheet" href="#{href}" type="text/css" media="all">}.html_safe
|
%Q{<link class="custom-css" rel="stylesheet" href="#{href}" type="text/css" media="all">}.html_safe
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user