X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FAttach.php;h=24e0edc5552ad774d7187573249835acd31474b7;hb=51210af22157327376954721bfdca7161b66a7be;hp=eed1275c58cbb52d2729ebae171c7565831189a7;hpb=fc2b804cccadcd2e9f90953f02b5977b2eb46439;p=friendica.git diff --git a/src/Module/Attach.php b/src/Module/Attach.php index eed1275c58..24e0edc555 100644 --- a/src/Module/Attach.php +++ b/src/Module/Attach.php @@ -8,8 +8,8 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Core\L10n; -use Friendica\Core\System; use Friendica\Core\Logger; +use Friendica\Core\System; use Friendica\Model\Attach as MAttach; /** @@ -18,18 +18,16 @@ use Friendica\Model\Attach as MAttach; class Attach extends BaseModule { /** - * @brief Module initializer - * - * Fetch an attached file given the id + * @brief Return to user an attached file given the id */ - public static function init() + public static function rawContent() { $a = self::getApp(); if ($a->argc != 2) { System::httpExit(400); // Bad Request. } - + // @TODO: Replace with parameter from router $item_id = intval($a->argv[1]); // Check for existence @@ -64,4 +62,4 @@ class Attach extends BaseModule exit(); // NOTREACHED } -} \ No newline at end of file +}