]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
AttachmentAction is a ManagedAction, don't implement handle()
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 25 Jan 2015 01:25:28 +0000 (02:25 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 25 Jan 2015 01:25:28 +0000 (02:25 +0100)
This also gives us more freedom in Attachment_thumbnailAction for example

actions/attachment.php

index 94ccf098e0b09e97388bb8b6e66d6dfeb5b61311..1126759832a65799744a29c67c6c257d80a8ddb5 100644 (file)
@@ -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);
         }
 
-        parent::handle();
+        parent::showPage();
     }
 
     /**