mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 16:31:09 +08:00
FIX: raise exception when getting dimensions of missing image
- follow-up on 0eacd45ab15cbd20ed9f444fd447886a7fc6dccb
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
module ImageSizer
|
||||
|
||||
# Resize an image to the aspect ratio we want
|
||||
def self.resize(width = nil, height = nil, opts = {})
|
||||
def self.resize(width, height, opts = {})
|
||||
return if width.blank? || height.blank?
|
||||
|
||||
max_width = (opts[:max_width] || SiteSetting.max_image_width).to_f
|
||||
|
Reference in New Issue
Block a user