mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:55:44 +08:00
DEV: Remove warnings on console (#14608)
We don't use oxipng from the image_optim gem and rake tasks complained that constants have already been initialized.
This commit is contained in:
@ -127,7 +127,8 @@ class FileHelper
|
|||||||
jpegrecompress: false,
|
jpegrecompress: false,
|
||||||
# Skip looking for gifsicle, svgo binaries
|
# Skip looking for gifsicle, svgo binaries
|
||||||
gifsicle: false,
|
gifsicle: false,
|
||||||
svgo: false
|
svgo: false,
|
||||||
|
oxipng: false
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
module FileStore
|
module FileStore
|
||||||
|
|
||||||
class BaseStore
|
class BaseStore
|
||||||
UPLOAD_PATH_REGEX = %r|/(original/\d+X/.*)|
|
UPLOAD_PATH_REGEX ||= %r|/(original/\d+X/.*)|
|
||||||
OPTIMIZED_IMAGE_PATH_REGEX = %r|/(optimized/\d+X/.*)|
|
OPTIMIZED_IMAGE_PATH_REGEX ||= %r|/(optimized/\d+X/.*)|
|
||||||
TEMPORARY_UPLOAD_PREFIX ||= "temp/"
|
TEMPORARY_UPLOAD_PREFIX ||= "temp/"
|
||||||
|
|
||||||
def store_upload(file, upload, content_type = nil)
|
def store_upload(file, upload, content_type = nil)
|
||||||
|
Reference in New Issue
Block a user