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

Commit 4b65275e authored by mattl's avatar mattl

AttachmentAction is a ManagedAction, don't implement handle()

This also gives us more freedom in Attachment_thumbnailAction for example
parent ce838944
......@@ -92,21 +92,14 @@ class AttachmentAction extends ManagedAction
return $a->title();
* Handle input
* Only handles get, so just show the page.
* @return void
protected function handle()
public function showPage()
if (empty($this->attachment->filename)) {
// if it's not a local file, gtfo
common_redirect($this->attachment->url, 303);
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