Commit ce838944 authored by mmn's avatar mmn

Let's not risk mixing two object types up

parent aeaee388
......@@ -61,9 +61,9 @@ class Attachment_thumbnailAction extends AttachmentAction
try {
$thumbnail = $this->attachment->getThumbnail($this->thumb_w, $this->thumb_h, $this->thumb_c);
} catch (UseFileAsThumbnailException $e) {
// Since we're only using the ->getUrl() function, we can use the File object
$thumbnail = $e->file;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment