]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/attachment_ajax.php
Adding clip illustration for notice attachments.
[quix0rs-gnu-social.git] / actions / attachment_ajax.php
index 1620b27ddad75e08a753c060dd42eda13279c3df..3d83393c51613c22f976974d52be67fd73083319 100644 (file)
@@ -45,26 +45,6 @@ require_once INSTALLDIR.'/actions/attachment.php';
 
 class Attachment_ajaxAction extends AttachmentAction
 {
-    /**
-     * Load attributes based on database arguments
-     *
-     * Loads all the DB stuff
-     *
-     * @param array $args $_REQUEST array
-     *
-     * @return success flag
-     */
-
-    function prepare($args)
-    {
-        parent::prepare($args);
-        if (!$this->attachment) {
-            $this->clientError(_('No such attachment.'), 404);
-            return false;
-        }
-        return true;
-    }
-
     /**
      * Show page, a template method.
      *
@@ -95,8 +75,6 @@ class Attachment_ajaxAction extends AttachmentAction
         $this->elementEnd('div');
     }
 
-
-
     /**
      * Last-modified date for page
      *