mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
FEATURE: support custom icons in themes (#7155)
* First take * Add support for sprites in themes Automatically register any custom icons added via themes or plugins * Fix theme sprite caching * Simplify test * Update lib/svg_sprite/svg_sprite.rb Co-Authored-By: pmusaraj <pmusaraj@gmail.com> * Fix /svg-sprite/search request
This commit is contained in:
@@ -37,6 +37,7 @@ class UploadCreator
|
||||
|
||||
is_image = FileHelper.is_supported_image?(@filename)
|
||||
is_image ||= @image_info && FileHelper.is_supported_image?("test.#{@image_info.type}")
|
||||
is_image = false if @opts[:for_theme]
|
||||
|
||||
if is_image
|
||||
extract_image_info!
|
||||
|
||||
Reference in New Issue
Block a user