X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fattachment_ajax.php;h=3d83393c51613c22f976974d52be67fd73083319;hb=b4e649fe906a793cd5e62d6390065ea5d41c40db;hp=1620b27ddad75e08a753c060dd42eda13279c3df;hpb=0c28fdda62676bea352b58f05f66d83a92353a14;p=quix0rs-gnu-social.git diff --git a/actions/attachment_ajax.php b/actions/attachment_ajax.php index 1620b27dda..3d83393c51 100644 --- a/actions/attachment_ajax.php +++ b/actions/attachment_ajax.php @@ -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 *