From da8163eb29c72febce5bc2bcfdaa9b63c8b1480a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 30 Jun 2016 17:15:56 +0200 Subject: [PATCH] FIX: 'cdn_url' not 'cnd_url' --- lib/cooked_post_processor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index 427914fcf..8c671920c 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -331,14 +331,14 @@ class CookedPostProcessor @doc.css("a[#{selector}]").each do |a| href = a[selector].to_s a[selector] = UrlHelper.schemaless UrlHelper.absolute(href) if UrlHelper.is_local(href) - a[selector] = Discourse.store.cnd_url(a[selector]) if use_s3_cdn + a[selector] = Discourse.store.cdn_url(a[selector]) if use_s3_cdn end end @doc.css("img[src]").each do |img| src = img["src"].to_s img["src"] = UrlHelper.schemaless UrlHelper.absolute(src) if UrlHelper.is_local(src) - img["src"] = Discourse.store.cnd_url(img["src"]) if use_s3_cdn + img["src"] = Discourse.store.cdn_url(img["src"]) if use_s3_cdn end end