From b2b10c0f3ced719b7598a4de15a0b8256d9915db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 11 May 2017 10:03:28 +0200 Subject: [PATCH] FIX: these should not have been class variables --- lib/upload_creator.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/upload_creator.rb b/lib/upload_creator.rb index c380da175d3..4e4215bec78 100644 --- a/lib/upload_creator.rb +++ b/lib/upload_creator.rb @@ -233,11 +233,11 @@ class UploadCreator end def max_image_size - @@max_image_size ||= SiteSetting.max_image_size_kb.kilobytes + @max_image_size ||= SiteSetting.max_image_size_kb.kilobytes end def max_image_pixels - @@max_image_pixels ||= SiteSetting.max_image_megapixels * 1_000_000 + @max_image_pixels ||= SiteSetting.max_image_megapixels * 1_000_000 end def pixels @@ -245,7 +245,7 @@ class UploadCreator end def allow_animation - @@allow_animation ||= @opts[:type] == "avatar" ? SiteSetting.allow_animated_avatars : SiteSetting.allow_animated_thumbnails + @allow_animation ||= @opts[:type] == "avatar" ? SiteSetting.allow_animated_avatars : SiteSetting.allow_animated_thumbnails end def svg_whitelist_xpath