Skip to content

A platform for community discussion. Free, open, simple.

FIX: use correct sprite path for non-local setups

Penar Musarajf7875eaeb780
diff --git a/lib/svg_sprite/svg_sprite.rb b/lib/svg_sprite/svg_sprite.rb
index 2ccb63cb5e1..efdb832531a 100644
--- a/lib/svg_sprite/svg_sprite.rb
+++ b/lib/svg_sprite/svg_sprite.rb
@@ -206,7 +206,7 @@ module SvgSprite
original_path = external_copy.try(:path)
end
- custom_sprite_paths << Discourse.store.path_for(upload) if original_path.present?
+ custom_sprite_paths << original_path if original_path.present?
end
custom_sprite_paths