We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit ce838944 authored by mattl's avatar mattl

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;
common_redirect($e->file->getUrl());
}
common_redirect($thumbnail->getUrl());
}
}
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