A platform for community discussion. Free, open, simple.
DEV: Remove warnings on console (#14608)
Gerhard Schlagera85c876dbe0b
diff --git a/lib/file_helper.rb b/lib/file_helper.rbindex d87da5a85e0..acdf958f361 100644--- a/lib/file_helper.rb+++ b/lib/file_helper.rb@@ -127,7 +127,8 @@ class FileHelperjpegrecompress: false,# Skip looking for gifsicle, svgo binariesgifsicle: false,- svgo: false+ svgo: false,+ oxipng: false)endenddiff --git a/lib/file_store/base_store.rb b/lib/file_store/base_store.rbindex 788e6cd5936..f3d948f45a1 100644--- a/lib/file_store/base_store.rb+++ b/lib/file_store/base_store.rb@@ -3,8 +3,8 @@module FileStoreclass BaseStore- UPLOAD_PATH_REGEX = %r|/(original/\d+X/.*)|- OPTIMIZED_IMAGE_PATH_REGEX = %r|/(optimized/\d+X/.*)|+ UPLOAD_PATH_REGEX ||= %r|/(original/\d+X/.*)|+ OPTIMIZED_IMAGE_PATH_REGEX ||= %r|/(optimized/\d+X/.*)|TEMPORARY_UPLOAD_PREFIX ||= "temp/"def store_upload(file, upload, content_type = nil)