app/controllers/management/cms_controller.rb in imagine_cms-3.0.11 vs app/controllers/management/cms_controller.rb in imagine_cms-3.0.12

- old
+ new

@@ -1465,10 +1465,10 @@ def create_preview_image(src_file, dest, force = 0, overlay = 'gallery_small_overlay.png', thumb_size = 90) dest = File.join(dest, File.basename(src_file)) if File.directory?(dest) if !File.exists?(dest) || force == 1 im = Magick::Image::read(src_file)[0] - im_overlay = Magick::Image::read(File.join(ImagineCms::Engine.root, 'assets', 'images', 'management', overlay))[0] + im_overlay = Magick::Image::read(File.join(ImagineCms::Engine.root, 'app', 'assets', 'images', 'management', overlay))[0] im.crop_resized!(thumb_size, thumb_size) im = im.composite(im_overlay, Magick::CenterGravity, Magick::OverCompositeOp) im.write(dest)