mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
simplify production switch and serve extra locales from actual site
This commit is contained in:
parent
ad62f1099c
commit
daad2291ba
@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationController
|
||||
|
||||
def self.url(bundle)
|
||||
if Rails.env == "production"
|
||||
"#{SiteSetting.login_required || bundle =~ /^(admin|wizard)$/ ? "" : GlobalSetting.cdn_url}#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
|
||||
"#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
|
||||
else
|
||||
"#{Discourse.base_uri}/extra-locales/#{bundle}"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user