]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Attach.php
Standards
[friendica.git] / src / Module / Attach.php
index 84961ca2763faddb6dd477239e854487747eb0c9..bd785881c3d067a9a36cdfb0a17bf2ae7b84740c 100644 (file)
@@ -34,14 +34,14 @@ class Attach extends BaseModule
        /**
         * Return to user an attached file given the id
         */
-       public function rawContent()
+       protected function rawContent(array $request = [])
        {
                $a = DI::app();
-               if (empty(static::$parameters['item'])) {
+               if (empty($this->parameters['item'])) {
                        throw new \Friendica\Network\HTTPException\BadRequestException();
                }
 
-               $item_id = intval(static::$parameters['item']);
+               $item_id = intval($this->parameters['item']);
 
                // Check for existence
                $item = MAttach::exists(['id' => $item_id]);