mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
FIX: Fix broken theme field URLs. (#6622)
This commit is contained in:

committed by
Régis Hanol

parent
336436dfb4
commit
172b3bf4d3
@ -4,7 +4,7 @@ module GlobalPath
|
||||
end
|
||||
|
||||
def cdn_path(p)
|
||||
"#{GlobalSetting.cdn_url}#{path(p)}"
|
||||
GlobalSetting.cdn_url.blank? ? p : "#{GlobalSetting.cdn_url}#{path(p)}"
|
||||
end
|
||||
|
||||
def upload_cdn_path(p)
|
||||
|
Reference in New Issue
Block a user