FIX: source admin locale from cdn
This commit is contained in:
parent
8ff5f5f2ef
commit
b0a7ee1aec
|
@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationController
|
|||
|
||||
def self.url(bundle)
|
||||
if Rails.env == "production"
|
||||
"#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
|
||||
"#{GlobalSetting.cdn_url}#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
|
||||
else
|
||||
"#{Discourse.base_uri}/extra-locales/#{bundle}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue